MCPcopy Index your code
hub / github.com/coder/coder / Add

Method Add

tailnet/test/integration/integration.go:135–144  ·  view source on GitHub ↗
(id uuid.UUID, conn net.Conn)

Source from the content-addressed store, hash-verified

133}
134
135func (c *connManager) Add(id uuid.UUID, conn net.Conn) func() {
136 c.mu.Lock()
137 defer c.mu.Unlock()
138 c.conns[id] = conn
139 return func() {
140 c.mu.Lock()
141 defer c.mu.Unlock()
142 delete(c.conns, id)
143 }
144}
145
146func (c *connManager) CloseAll() {
147 c.mu.Lock()

Callers 1

RouterMethod · 0.95

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected