mirror of
https://github.com/libp2p/go-libp2p-peerstore.git
synced 2024-12-28 23:50:12 +08:00
Use NewAddrSubManager
This commit is contained in:
parent
0b863436d8
commit
718adac0a2
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user