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

Method Set

p2p/conn_set.go:74–82  ·  view source on GitHub ↗
(c net.Conn, ips []net.IP)

Source from the content-addressed store, hash-verified

72}
73
74func (cs *connSet) Set(c net.Conn, ips []net.IP) {
75 cs.Lock()
76 defer cs.Unlock()
77
78 cs.conns[c.RemoteAddr().String()] = connSetItem{
79 conn: c,
80 ips: ips,
81 }
82}

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