Skip to content

Commit

Permalink
Clear shutdownCallbacks after use
Browse files Browse the repository at this point in the history
  • Loading branch information
madaraszg-tulip committed Nov 26, 2024
1 parent 011d62e commit c42de6c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions exporter/exporterhelper/internal/queue_sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ func (qs *QueueSender) Shutdown(ctx context.Context) error {
for _, callback := range qs.shutdownCallbacks {
callback()
}
qs.shutdownCallbacks = nil

if err := qs.queue.Shutdown(ctx); err != nil {
return err
Expand Down

0 comments on commit c42de6c

Please sign in to comment.