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

Method markConnected

tailnet/telemetry.go:83–90  ·  view source on GitHub ↗
(ip *netip.Addr, application string)

Source from the content-addressed store, hash-verified

81}
82
83func (b *TelemetryStore) markConnected(ip *netip.Addr, application string) {
84 b.mu.Lock()
85 defer b.mu.Unlock()
86
87 b.lastDerpTime = time.Now()
88 b.connectedIP = ip
89 b.application = application
90}
91
92func (b *TelemetryStore) pingPeer(conn *Conn) {
93 b.mu.Lock()

Callers 2

TestTelemetryStoreFunction · 0.80

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by 1

TestTelemetryStoreFunction · 0.64