()
| 367 | } |
| 368 | |
| 369 | func (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 |
nothing calls this directly
no test coverage detected