Skip to content

Commit

Permalink
chore: Remove getter function
Browse files Browse the repository at this point in the history
  • Loading branch information
dariusc93 committed Nov 30, 2023
1 parent 978e427 commit 3592cf0
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions misc/connection-limits/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,32 +205,6 @@ impl ConnectionLimits {
}
}

impl ConnectionLimits {
pub fn max_pending_incoming(&self) -> Option<u32> {
self.max_pending_incoming
}

pub fn max_pending_outgoing(&self) -> Option<u32> {
self.max_pending_outgoing
}

pub fn max_established_incoming(&self) -> Option<u32> {
self.max_established_incoming
}

pub fn max_established_outgoing(&self) -> Option<u32> {
self.max_established_outgoing
}

pub fn max_established(&self) -> Option<u32> {
self.max_established_total
}

pub fn max_established_per_peer(&self) -> Option<u32> {
self.max_established_per_peer
}
}

impl NetworkBehaviour for Behaviour {
type ConnectionHandler = dummy::ConnectionHandler;
type ToSwarm = Void;
Expand Down

0 comments on commit 3592cf0

Please sign in to comment.