syncs: delete Map.Range, update callers to iterators

Updates #11038

Change-Id: I2819fed896cc4035aba5e4e141b52c12637373b1
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2024-10-09 13:48:18 -07:00
committed by Brad Fitzpatrick
parent 2cadb80fb2
commit c763b7a7db
5 changed files with 11 additions and 32 deletions

View File

@@ -974,13 +974,12 @@ func (n *network) writeEth(res []byte) bool {
if dstMAC.IsBroadcast() || (n.v6 && etherType == layers.EthernetTypeIPv6 && dstMAC == macAllNodes) {
num := 0
n.writers.Range(func(mac MAC, nw networkWriter) bool {
for mac, nw := range n.writers.All() {
if mac != srcMAC {
num++
nw.write(res)
}
return true
})
}
return num > 0
}
if srcMAC == dstMAC {