Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update client/network/src/discovery.rs
Co-authored-by: Roman Borschel <romanb@users.noreply.github.com>
  • Loading branch information
tomaka and romanb authored Jan 28, 2021
commit 4cbde9087fe175ef3bdb7a0eaae825adde14c246
3 changes: 2 additions & 1 deletion client/network/src/discovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ impl DiscoveryConfig {
self
}

/// Should the discovery behaviour randomly walk the DHT and generate ?
/// Whether the discovery behaviour should periodically perform a random
/// walk on the DHT to discover peers.
pub fn with_dht_random_walk(&mut self, value: bool) -> &mut Self {
self.dht_random_walk = value;
self
Expand Down