From 9c7b8e8e958fb4006e9d4b15a9735338b3eb22fd Mon Sep 17 00:00:00 2001 From: PanGan21 Date: Sat, 2 Dec 2023 15:20:36 +0200 Subject: [PATCH] fix doc and remove test change --- protocols/kad/src/behaviour.rs | 2 +- protocols/kad/src/behaviour/test.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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::>();