From 9e16fd020e3937b9fc0769b11bfb0c998fb95531 Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Wed, 9 Oct 2019 05:39:45 +0900 Subject: [PATCH] use PeerID `==` for comparisons --- libp2p/protocols/identify.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libp2p/protocols/identify.nim b/libp2p/protocols/identify.nim index ae16f88..8ae65ef 100644 --- a/libp2p/protocols/identify.nim +++ b/libp2p/protocols/identify.nim @@ -136,7 +136,7 @@ proc identify*(p: Identify, # do a string comaprison of the ids, # 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", remote = peer.pretty(), local = remotePeerInfo.peerId.get().pretty()