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

Method Close

coderd/tailnet.go:369–374  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

367}
368
369func (c *instrumentedConn) Close() error {
370 c.closeOnce.Do(func() {
371 c.connsPerAgent.WithLabelValues("tcp").Dec()
372 })
373 return c.Conn.Close()
374}
375
376// MultiAgentController is a tailnet.CoordinationController for connecting to multiple workspace
377// agents. It keeps track of connection times to the agents, and removes them on a timer if they

Callers

nothing calls this directly

Calls 3

WithLabelValuesMethod · 0.80
DoMethod · 0.65
CloseMethod · 0.65

Tested by

no test coverage detected