mirror of
https://github.com/libp2p/go-libp2p-peerstore.git
synced 2025-01-28 04:50:07 +08:00
fix memory store signed peer record bug
This commit is contained in:
parent
0860fe0aa7
commit
9868efd05f
@ -252,7 +252,7 @@ func (mab *memoryAddrBook) addAddrs(p peer.ID, addrs []ma.Multiaddr, ttl time.Du
|
||||
// }
|
||||
|
||||
// if we've expired all the signed addresses for a peer, remove their signed routing state record
|
||||
if len(addrs) == 0 {
|
||||
if len(amap) == 0 {
|
||||
delete(s.signedPeerRecords, p)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user