Skip to content

Commit

Permalink
Merge pull request #13 from klarna-incubator/expose-broker-as-singletone
Browse files Browse the repository at this point in the history
Exposes a singleton broker
  • Loading branch information
katrotz authored Sep 3, 2024
2 parents 49720ae + a7e36a5 commit 98dcbdf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/server/lambda-microservice.broker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,5 @@ export class LambdaMicroserviceBroker extends EventEmitter {
}

export const LambdaMicroserviceBrokerFactory = () => new LambdaMicroserviceBroker()

export const singletonBroker = LambdaMicroserviceBrokerFactory()

0 comments on commit 98dcbdf

Please sign in to comment.