MCPcopy Create free account
hub / github.com/coder/coder / pingPeer

Method pingPeer

tailnet/telemetry.go:92–103  ·  view source on GitHub ↗
(conn *Conn)

Source from the content-addressed store, hash-verified

90}
91
92func (b *TelemetryStore) pingPeer(conn *Conn) {
93 b.mu.Lock()
94 defer b.mu.Unlock()
95
96 if b.connectedIP == nil {
97 return
98 }
99 ip := *b.connectedIP
100 go func() {
101 _, _, _, _ = conn.Ping(conn.watchCtx, ip)
102 }()
103}
104
105func (b *TelemetryStore) changedConntype(addr string) bool {
106 b.mu.Lock()

Callers 2

NewConnFunction · 0.80
watchConnChangeMethod · 0.80

Calls 3

PingMethod · 0.65
LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected