Skip to content

Commit

Permalink
fix: fix ack
Browse files Browse the repository at this point in the history
  • Loading branch information
liaosunny123 committed Aug 31, 2023
1 parent 684d05b commit ecb6aa3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/msgconsumer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func main() {
span.End()
continue
}
err = body.Ack(true)
err = body.Ack(false)

if err != nil {
logger.WithFields(logrus.Fields{
Expand Down Expand Up @@ -339,7 +339,7 @@ func ss(channel *amqp.Channel) {
continue
}

err = body.Ack(true)
err = body.Ack(false)

if err != nil {
logger.WithFields(logrus.Fields{
Expand Down

0 comments on commit ecb6aa3

Please sign in to comment.