Function libp2p_gossipsub::score_parameter_decay
source · pub fn score_parameter_decay(decay: Duration) -> f64
Expand description
Computes the decay factor for a parameter, assuming the decay_interval
is 1s
and that the value decays to zero if it drops below 0.01.