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

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