Skip to content

Commit

Permalink
swarm/src/lib: Allow WithPeerIdWithAddresses::condition
Browse files Browse the repository at this point in the history
  • Loading branch information
mxinden committed Nov 8, 2021
1 parent eea9e12 commit 26dedbe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions swarm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1861,6 +1861,11 @@ pub mod dial_opts {
}

impl WithPeerIdWithAddresses {
pub fn condition(mut self, condition: PeerCondition) -> Self {
self.condition = condition;
self
}

pub fn extend_addresses_through_behaviour(mut self) -> Self {
self.extend_addresses_through_behaviour = true;
self
Expand Down

0 comments on commit 26dedbe

Please sign in to comment.