Use NewAddrSubManager

This commit is contained in:
Cole Brown 2018-06-12 17:41:05 -04:00
parent 0b863436d8
commit 718adac0a2

View File

@ -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()
}
}