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

Method Remove

core/conntrack/connection.go:132–136  ·  view source on GitHub ↗

Remove deletes the entry for k. Safe to call repeatedly.

(k Tuple)

Source from the content-addressed store, hash-verified

130
131// Remove deletes the entry for k. Safe to call repeatedly.
132func (t *Table) Remove(k Tuple) {
133 t.mu.Lock()
134 defer t.mu.Unlock()
135 delete(t.m, k)
136}
137
138// Len returns the current connection count (for metrics/telemetry).
139func (t *Table) Len() int {

Callers 5

TestTableAddGetRemoveFunction · 0.95
writeYAMLFunction · 0.80
handleInboundMethod · 0.80
scheduleInjectMethod · 0.80
replaceSelfFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestTableAddGetRemoveFunction · 0.76