mirror of https://github.com/vacp2p/nim-libp2p.git
use PeerID `==` for comparisons
This commit is contained in:
parent
a6cc199807
commit
9e16fd020e
|
@ -136,7 +136,7 @@ proc identify*(p: Identify,
|
||||||
|
|
||||||
# do a string comaprison of the ids,
|
# do a string comaprison of the ids,
|
||||||
# because that is the only thing we have in most cases
|
# because that is the only thing we have in most cases
|
||||||
if peer.pretty() != remotePeerInfo.peerId.get().pretty():
|
if peer != remotePeerInfo.peerId.get():
|
||||||
trace "Peer ids don't match",
|
trace "Peer ids don't match",
|
||||||
remote = peer.pretty(),
|
remote = peer.pretty(),
|
||||||
local = remotePeerInfo.peerId.get().pretty()
|
local = remotePeerInfo.peerId.get().pretty()
|
||||||
|
|
Loading…
Reference in New Issue