MCPcopy Create free account
hub / github.com/SamNet-dev/snix / Len

Method Len

core/conntrack/connection.go:139–143  ·  view source on GitHub ↗

Len returns the current connection count (for metrics/telemetry).

()

Source from the content-addressed store, hash-verified

137
138// Len returns the current connection count (for metrics/telemetry).
139func (t *Table) Len() int {
140 t.mu.RLock()
141 defer t.mu.RUnlock()
142 return len(t.m)
143}

Callers 1

TestTableAddGetRemoveFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestTableAddGetRemoveFunction · 0.76