Constant zebra_network::constants::DEFAULT_CRAWL_NEW_PEER_INTERVAL
source · pub const DEFAULT_CRAWL_NEW_PEER_INTERVAL: Duration;
Expand description
The default peer address crawler interval.
This should be at least HANDSHAKE_TIMEOUT
lower than all other crawler
intervals.
This makes the following sequence of events more likely:
- a peer address crawl,
- new peer connections,
- peer requests from other crawlers.
Using a prime number makes sure that peer address crawls don’t synchronise with other crawls.