setBlockEndpoints sets whether we block reporting Node endpoints. u.L MUST NOT be held. nolint: revive
(blockEndpoints bool)
| 222 | // be held. |
| 223 | // nolint: revive |
| 224 | func (u *nodeUpdater) setBlockEndpoints(blockEndpoints bool) { |
| 225 | u.L.Lock() |
| 226 | defer u.L.Unlock() |
| 227 | if u.blockEndpoints == blockEndpoints { |
| 228 | return |
| 229 | } |
| 230 | u.dirty = true |
| 231 | u.blockEndpoints = blockEndpoints |
| 232 | u.Broadcast() |
| 233 | } |
| 234 | |
| 235 | // fillPeerDiagnostics fills out the PeerDiagnostics with PreferredDERP and SentNode |
| 236 | func (u *nodeUpdater) fillPeerDiagnostics(d *PeerDiagnostics) { |