Skip to content

Commit af8503d

Browse files
committed
Graceful Exit
1 parent 9da2f4f commit af8503d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

consumer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ func (c *BatchConsumer) StartConsumer() {
9999

100100
signal.Notify(c.TerminateCh, syscall.SIGINT, syscall.SIGTERM)
101101
<-c.TerminateCh
102-
103102
cancel()
103+
os.Exit(0)
104104
c.Workerline.Wait()
105105
}
106106

0 commit comments

Comments
 (0)