Skip to content

Commit

Permalink
only stop librato after wait shutdown tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
rasoro committed Dec 4, 2024
1 parent 88672b3 commit d423ba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mailroom.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,12 @@ func (mr *Mailroom) Stop() error {
mr.batchForeman.Stop()
mr.handlerForeman.Stop()
mr.flowBatchForeman.Stop()
librato.Stop()
close(mr.quit)
mr.cancel()

time.Sleep(time.Second * time.Duration(mr.rt.Config.ShutdownToleranceTime))

librato.Stop()
// stop our web server
mr.webserver.Stop()

Expand Down

0 comments on commit d423ba8

Please sign in to comment.