mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-06-29 08:51:34 +00:00
chore: address review
This commit is contained in:
@ -43,7 +43,7 @@ async function encrypt (localId, conn, remoteId) {
|
||||
throw new InvalidCryptoExchangeError('Remote did not provide its public key')
|
||||
}
|
||||
|
||||
if (remoteId && !peerId.isEqual(remoteId)) {
|
||||
if (remoteId && !peerId.equals(remoteId)) {
|
||||
throw new UnexpectedPeerError()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user