MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / newMetrics

Function newMetrics

internal/nodehub/metrics.go:28–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26}
27
28func newMetrics() *metrics {
29 return &metrics{perNodeLastSeen: make(map[string]time.Time)}
30}
31
32func (m *metrics) markSeen(nodeID string) {
33 now := time.Now()

Callers 1

NewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected