MCPcopy Create free account
hub / github.com/DeAI-Artist/Linkis / Remove

Method Remove

p2p/conn_set.go:60–65  ·  view source on GitHub ↗
(c net.Conn)

Source from the content-addressed store, hash-verified

58}
59
60func (cs *connSet) Remove(c net.Conn) {
61 cs.Lock()
62 defer cs.Unlock()
63
64 delete(cs.conns, c.RemoteAddr().String())
65}
66
67func (cs *connSet) RemoveAddr(addr net.Addr) {
68 cs.Lock()

Callers

nothing calls this directly

Calls 4

LockMethod · 0.65
UnlockMethod · 0.65
StringMethod · 0.65
RemoteAddrMethod · 0.65

Tested by

no test coverage detected