chore: update it-length-prefixed (#476)

fix: decode.fromReader usage
This commit is contained in:
Jacob Heun 2019-11-13 16:38:07 +01:00
parent c7a54f34f7
commit 2afdbb71b2
2 changed files with 4 additions and 4 deletions

View File

@ -50,11 +50,11 @@
"fsm-event": "^2.1.0",
"hashlru": "^2.3.0",
"it-handshake": "^1.0.1",
"it-length-prefixed": "jacobheun/pull-length-prefixed#feat/fromReader",
"it-pipe": "^1.0.1",
"it-length-prefixed": "^3.0.0",
"it-pipe": "^1.1.0",
"it-protocol-buffers": "^0.2.0",
"latency-monitor": "~0.2.1",
"libp2p-crypto": "^0.16.2",
"libp2p-crypto": "^0.17.1",
"libp2p-interfaces": "^0.1.3",
"mafmt": "^7.0.0",
"merge-options": "^1.0.1",

View File

@ -31,7 +31,7 @@ async function encrypt (localId, conn, remoteId) {
log('write pubkey exchange to peer %j', remoteId)
// Get the Exchange message
const response = (await lp.decodeFromReader(shake.reader).next()).value
const response = (await lp.decode.fromReader(shake.reader).next()).value
const id = Exchange.decode(response.slice())
log('read pubkey exchange from peer %j', remoteId)