MCPcopy Create free account
hub / github.com/PasarGuard/node / ClearAllStats

Method ClearAllStats

pkg/stats/tracker.go:280–284  ·  view source on GitHub ↗

ClearAllStats clears all stats

()

Source from the content-addressed store, hash-verified

278
279// ClearAllStats clears all stats
280func (st *Tracker) ClearAllStats() {
281 st.mu.Lock()
282 defer st.mu.Unlock()
283 st.stats = make(map[string]*Entry)
284}
285
286// CleanupDeletedEntries removes deleted peers once their remaining delta is fully accounted.
287func (st *Tracker) CleanupDeletedEntries() {

Callers 1

Calls

no outgoing calls

Tested by 1