Skip to content

Commit

Permalink
shutdown emitter in tier 2
Browse files Browse the repository at this point in the history
  • Loading branch information
colindickson committed Mar 27, 2024
1 parent 5ea165e commit 97f92b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions service/tier2.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ func (s *Tier2Service) ProcessRange(request *pbssinternal.ProcessRangeRequest, s
if err != nil {
return connect.NewError(connect.CodeInternal, fmt.Errorf("unable to initialize dmetering: %w", err))
}
defer func() {
emitter.Shutdown(nil)
}()

ctx = context.WithValue(ctx, "event_emitter", emitter)

Expand Down

0 comments on commit 97f92b5

Please sign in to comment.