diff --git a/protocols/kad/src/behaviour.rs b/protocols/kad/src/behaviour.rs index f9d16ab7dab..97f02802a82 100644 --- a/protocols/kad/src/behaviour.rs +++ b/protocols/kad/src/behaviour.rs @@ -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 { let local_key = self.kbuckets.local_key().clone(); let info = QueryInfo::Bootstrap { diff --git a/protocols/kad/src/behaviour/test.rs b/protocols/kad/src/behaviour/test.rs index 102221ca401..522eebcba92 100644 --- a/protocols/kad/src/behaviour/test.rs +++ b/protocols/kad/src/behaviour/test.rs @@ -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::>();