// SPDX-License-Identifier: MIT OR Apache-2.0
#[derive(Clone, Debug)]pubstructDiscoveryConfig{/// Number of random walkers which "explore" the network at the same time.
pubrandom_walkers_count:usize,
/// Probability of resetting the random walk and starting from scratch, determined on every
/// walking step.
////// ```text
/// 0.0 = Never reset
/// 1.0 = Always reset
/// ```
////// Defaults to 0.02 (2%) probability.
pubreset_walk_probability:f64,
}implDefault forDiscoveryConfig{fndefault()->Self{Self{
random_walkers_count:2,
reset_walk_probability:0.02,// 2% chance
}}}