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

Method fillPeerDiagnostics

tailnet/node.go:236–241  ·  view source on GitHub ↗

fillPeerDiagnostics fills out the PeerDiagnostics with PreferredDERP and SentNode

(d *PeerDiagnostics)

Source from the content-addressed store, hash-verified

234
235// fillPeerDiagnostics fills out the PeerDiagnostics with PreferredDERP and SentNode
236func (u *nodeUpdater) fillPeerDiagnostics(d *PeerDiagnostics) {
237 u.L.Lock()
238 defer u.L.Unlock()
239 d.PreferredDERP = u.preferredDERP
240 d.SentNode = u.sentNode
241}
242
243// getBlockEndpoints returns the value of the most recent setBlockEndpoints
244// call.

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45