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