Skip to content

Commit

Permalink
fix: update upgrader
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Feb 24, 2025
1 parent 2be16e0 commit e3a3feb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/libp2p-daemon-protocol/src/upgrader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ export class PassThroughUpgrader implements Upgrader {
this.onConnection = handler
}

async upgradeInbound (maConn: MultiaddrConnection): Promise<Connection> {
async upgradeInbound (maConn: MultiaddrConnection): Promise<void> {
this.onConnection?.(maConn)
// @ts-expect-error should return a connection
return maConn
}

async upgradeOutbound (maConn: MultiaddrConnection): Promise<Connection> {
Expand Down

0 comments on commit e3a3feb

Please sign in to comment.