Skip to content

Commit

Permalink
fix: ts-expect-error masking actual error
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Nov 8, 2024
1 parent fe0792b commit 25381fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/libp2p-daemon-client/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ class Client implements DaemonClient {
// open a tcp port, pipe any data from it to the handler function
const listener = this.tcp.createListener({
upgrader: new PassThroughUpgrader((maConn) => {
this.onConnection(protocol, listener, maConn)
this.onConnection(protocol, listener, handler, maConn)
})
})
await listener.listen(multiaddr('/ip4/127.0.0.1/tcp/0'))
Expand All @@ -224,7 +224,7 @@ class Client implements DaemonClient {
}
}

private onConnection (protocol: string, listener: Listener, connection: MultiaddrConnection): void {
private onConnection (protocol: string, listener: Listener, handler: StreamHandlerFunction, connection: MultiaddrConnection): void {
Promise.resolve()
.then(async () => {
const sh = new StreamHandler({
Expand Down

0 comments on commit 25381fc

Please sign in to comment.