Skip to content

Commit

Permalink
Delete heartbeat before stopAndWait
Browse files Browse the repository at this point in the history
  • Loading branch information
anodar committed May 16, 2024
1 parent 4591061 commit f18419b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pubsub/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ func (c *Consumer[Request, Response]) listenForInterrupt() {
}

func (c *Consumer[Request, Response]) StopAndWait() {
c.StopWaiter.StopAndWait()
c.deleteHeartBeat(c.GetContext())
c.StopWaiter.StopAndWait()
}

func heartBeatKey(id string) string {
Expand Down

0 comments on commit f18419b

Please sign in to comment.