use PeerID `==` for comparisons

This commit is contained in:
Dmitriy Ryajov 2019-10-09 05:39:45 +09:00
parent a6cc199807
commit 9e16fd020e
1 changed files with 1 additions and 1 deletions

View File

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