(ip string)
| 120 | } |
| 121 | |
| 122 | func (t *IPTracker) Clear(ip string) { |
| 123 | t.mu.Lock() |
| 124 | defer t.mu.Unlock() |
| 125 | |
| 126 | t.removeIPUnsafe(ip) |
| 127 | } |
| 128 | |
| 129 | func (t *IPTracker) removeIPUnsafe(ip string) { |
| 130 | delete(t.records, ip) |
nothing calls this directly
no test coverage detected