Skip to content

Commit

Permalink
Graceful Exit
Browse files Browse the repository at this point in the history
  • Loading branch information
Deeptiman committed Jul 16, 2021
1 parent 9da2f4f commit af8503d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ func (c *BatchConsumer) StartConsumer() {

signal.Notify(c.TerminateCh, syscall.SIGINT, syscall.SIGTERM)
<-c.TerminateCh

cancel()
os.Exit(0)
c.Workerline.Wait()
}

Expand Down

0 comments on commit af8503d

Please sign in to comment.