Browse Source

delete empty address sets on observed address set gc

pull/585/head
vyzo 6 years ago
parent
commit
fe7ba05e38
  1. 6
      p2p/protocol/identify/obsaddr.go

6
p2p/protocol/identify/obsaddr.go

@ -160,7 +160,11 @@ func (oas *ObservedAddrSet) gc() {
filteredAddrs = append(filteredAddrs, a)
}
}
oas.addrs[local] = filteredAddrs
if len(filteredAddrs) > 0 {
oas.addrs[local] = filteredAddrs
} else {
delete(oas.addrs, local)
}
}
}

Loading…
Cancel
Save