Skip to content

Commit

Permalink
fix: type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mpetrunic authored and ckousik committed Dec 23, 2022
1 parent a03a6b1 commit 574f30e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/circuit/v1/stream-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export class StreamHandlerV1 {

this.stream = stream
this.shake = handshake(this.stream)
// @ts-expect-error some type incompatibilities
this.decoder = lp.decode.fromReader(this.shake.reader, { maxDataLength: maxLength })
}

Expand Down
1 change: 1 addition & 0 deletions src/circuit/v2/stream-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export class StreamHandlerV2 {

this.stream = stream
this.shake = handshake(this.stream)
// @ts-expect-error some type incompatibilities
this.decoder = lp.decode.fromReader(this.shake.reader, { maxDataLength: maxLength })
}

Expand Down

0 comments on commit 574f30e

Please sign in to comment.