Skip to content

Commit

Permalink
fix doc and remove test change
Browse files Browse the repository at this point in the history
  • Loading branch information
PanGan21 committed Dec 2, 2023
1 parent 179db10 commit 9c7b8e8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion protocols/kad/src/behaviour.rs
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,7 @@ where
/// invoked at regular intervals based on the configured bootstrapping interval.
/// The bootstrapping interval is used to call bootstrap periodically
/// to ensure a healthy routing table.
/// > See [`Config::bootstrap_interval`] field in Config.
/// > See [`Config::set_bootstrap_interval`] for details.
pub fn bootstrap(&mut self) -> Result<QueryId, NoKnownPeers> {
let local_key = self.kbuckets.local_key().clone();
let info = QueryInfo::Bootstrap {
Expand Down
1 change: 0 additions & 1 deletion protocols/kad/src/behaviour/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ fn bootstrap() {
let swarm_ids: Vec<_> = swarms.iter().map(Swarm::local_peer_id).cloned().collect();

let qid = swarms[0].behaviour_mut().bootstrap().unwrap();
assert_eq!(qid.to_string(), 1.to_string());

// Expected known peers
let expected_known = swarm_ids.iter().skip(1).cloned().collect::<HashSet<_>>();
Expand Down

0 comments on commit 9c7b8e8

Please sign in to comment.