Handle rare peerstore refresh case

On rare occasions, the peer store removes an address directly after successfully
polling for it
This commit is contained in:
Cassandra Heart 2024-01-06 02:00:54 -06:00
parent bb71c38a39
commit 443612ac9b
No known key found for this signature in database
GPG Key ID: 6352152859385958

View File

@ -415,7 +415,7 @@ func (b *BlossomSub) GetMultiaddrOfPeer(peerId []byte) string {
return "" return ""
} }
return b.h.Peerstore().Addrs(peer.ID(peerId))[0].String() return addrs[0].String()
} }
func (b *BlossomSub) StartDirectChannelListener( func (b *BlossomSub) StartDirectChannelListener(