MCPcopy Index your code
hub / github.com/tailscale/tailscale / nodeConciseEqual

Function nodeConciseEqual

types/netmap/netmap.go:422–428  ·  view source on GitHub ↗

nodeConciseEqual reports whether a and b are equal for the fields accessed by printPeerConcise.

(a, b tailcfg.NodeView)

Source from the content-addressed store, hash-verified

420
421// nodeConciseEqual reports whether a and b are equal for the fields accessed by printPeerConcise.
422func nodeConciseEqual(a, b tailcfg.NodeView) bool {
423 return a.Key() == b.Key() &&
424 a.HomeDERP() == b.HomeDERP() &&
425 a.DiscoKey() == b.DiscoKey() &&
426 views.SliceEqual(a.AllowedIPs(), b.AllowedIPs()) &&
427 views.SliceEqual(a.Endpoints(), b.Endpoints())
428}
429
430func (b *NetworkMap) ConciseDiffFrom(a *NetworkMap) string {
431 var diff strings.Builder

Callers 1

ConciseDiffFromMethod · 0.85

Calls 6

SliceEqualFunction · 0.92
HomeDERPMethod · 0.80
DiscoKeyMethod · 0.80
AllowedIPsMethod · 0.80
EndpointsMethod · 0.80
KeyMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…