Skip to content

Commit

Permalink
reference automatic_bootstrap_throttle in the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
PanGan21 committed Mar 7, 2024
1 parent 3000dd1 commit 5f8ef81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions protocols/kad/src/behaviour.rs
Original file line number Diff line number Diff line change
Expand Up @@ -927,9 +927,9 @@ where
/// > See [`Behaviour::add_address`].
///
/// > **Note**: Bootstrap does not require to be called manually. It is periodically
/// invoked at regular intervals based on the configured `periodic_bootstrap_interval` (see
/// [`Config::set_periodic_bootstrap_interval`] for details) and it is also automatically invoked
/// when a new peer is inserted in the routing table.
/// invoked at regular intervals based on the configured `periodic_bootstrap_interval` and
/// `automatic_bootstrap_throttle` (see [`Config::set_periodic_bootstrap_interval`] for details)
/// and it is also automatically invoked when a new peer is inserted in the routing table.
/// These two config parameters are used to call [`Behaviour::bootstrap`] periodically and automatically
/// to ensure a healthy routing table.
pub fn bootstrap(&mut self) -> Result<QueryId, NoKnownPeers> {
Expand Down

0 comments on commit 5f8ef81

Please sign in to comment.