Skip to content

Commit

Permalink
perf: added a return to avoid calling the set twice
Browse files Browse the repository at this point in the history
  • Loading branch information
OsirisAnubiz committed Oct 31, 2024
1 parent cab1e74 commit db17755
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/nestjs-connectrpc/src/connectrpc.strategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export class ConnectRpcServer extends Server implements CustomTransportStrategy
const modifiedCallback = callback
modifiedCallback.isEventHandler = true
this.messageHandlers.set(route, modifiedCallback)
return
}
this.messageHandlers.set(route, callback)
}
Expand Down

0 comments on commit db17755

Please sign in to comment.