Skip to content

Commit

Permalink
Merge pull request #1406 from openmeterio/fix/notification-service-st…
Browse files Browse the repository at this point in the history
…artup-issues

fix: notification service startup issues
  • Loading branch information
turip authored Aug 22, 2024
2 parents 6a7f913 + db4d0f5 commit cdd54aa
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions internal/notification/consumer/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,18 @@ func New(opts Options) (*Consumer, error) {
Logger: opts.Logger.WithGroup("balance_threshold_event_handler"),
}

consumer := &Consumer{
opts: opts,

balanceThresholdHandler: balanceThresholdEventHandler,
}

router, err := router.NewDefaultRouter(opts.Router)
if err != nil {
return nil, err
}

consumer := &Consumer{
opts: opts,
router: router,

balanceThresholdHandler: balanceThresholdEventHandler,
}

_ = router.AddNoPublisherHandler(
"balance_consumer_system_events",
opts.SystemEventsTopic,
Expand Down

0 comments on commit cdd54aa

Please sign in to comment.