We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83ae595 commit ebb6227Copy full SHA for ebb6227
src/probing.rs
@@ -269,8 +269,8 @@ impl ProbingStrategy for HighDegreeStrategy {
269
270
let mut probed = self.recently_probed.lock().unwrap();
271
272
- // We could check staleness when we use the entry, but that way we'd not clear cache at
273
- // all. For hundreds of top nodes it's okay to call retain each tick.
+ // We could check staleness when we use the entry, but that way we'd not clear cache at
+ // all. For hundreds of top nodes it's okay to call retain each tick.
274
probed.retain(|_, probed_at| now.duration_since(*probed_at) < self.cooldown);
275
276
// If all top nodes are on cooldown, reset and start a new cycle.
0 commit comments