Skip to content

Commit

Permalink
fix(message): Finish sends a FIN command to the nsqd
Browse files Browse the repository at this point in the history
Signed-off-by: Bo-Yi Wu <[email protected]>
  • Loading branch information
appleboy committed Apr 18, 2022
1 parent 945096e commit d79fb34
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nsq.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ func (w *Worker) Run() error {

var data queue.Job
_ = json.Unmarshal(msg.Body, &data)
msg.Finish()
return w.handle(data)
}))

Expand Down

0 comments on commit d79fb34

Please sign in to comment.