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

Function New

pkg/stats/tracker.go:42–46  ·  view source on GitHub ↗

New creates a new stats tracker

()

Source from the content-addressed store, hash-verified

40
41// New creates a new stats tracker
42func New() *Tracker {
43 return &Tracker{
44 stats: make(map[string]*Entry),
45 }
46}
47
48// UpdateStatsBatch applies many peer stats updates under a single lock.
49func (st *Tracker) UpdateStatsBatch(samples []Sample) {

Calls

no outgoing calls