diff --git a/addr_manager.go b/addr_manager.go index f5f4a38..c916197 100644 --- a/addr_manager.go +++ b/addr_manager.go @@ -70,9 +70,7 @@ func (mgr *AddrManager) init() { mgr.addrs = make(map[peer.ID]addrSlice) } if mgr.subManager == nil { - mgr.subManager = &AddrSubManager{ - subs: make(map[peer.ID][]*addrSub), - } + mgr.subManager = NewAddrSubManager() } }