MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / reset

Method reset

nodedb-mem/src/budget.rs:223–227  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

221 /// Reset all counters (for testing).
222 #[cfg(test)]
223 pub fn reset(&self) {
224 self.allocated.store(0, Ordering::Relaxed);
225 self.peak.store(0, Ordering::Relaxed);
226 self.rejection_count.store(0, Ordering::Relaxed);
227 }
228}
229
230#[cfg(test)]

Callers

nothing calls this directly

Calls 1

storeMethod · 0.45

Tested by

no test coverage detected