mirror of
https://github.com/fluencelabs/js-libp2p-noise
synced 2025-04-25 15:12:32 +00:00
Fix eslint
This commit is contained in:
parent
fc71a22a6c
commit
bd53cb16fd
@ -7,7 +7,7 @@ interface ReturnEncryptionWrapper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Returns generator that encrypts payload from the user
|
// Returns generator that encrypts payload from the user
|
||||||
export function encryptStream(handshake: Handshake): ReturnEncryptionWrapper {
|
export function encryptStream(handshake: Handshake): ReturnEncryptionWrapper {
|
||||||
return async function * (source) {
|
return async function * (source) {
|
||||||
for await (const chunk of source) {
|
for await (const chunk of source) {
|
||||||
const chunkBuffer = Buffer.from(chunk);
|
const chunkBuffer = Buffer.from(chunk);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user