fix: concurrency issues and a few small improvements (#1324)

This commit is contained in:
abelanger5
2025-03-12 16:30:34 -04:00
committed by GitHub
parent 1950a0796d
commit ac968e94b8
13 changed files with 149 additions and 162 deletions

View File

@@ -608,7 +608,7 @@ func (t *MessageQueueImpl) subscribe(
t.l.Debug().Msgf("(session: %d) got msg", sessionCount)
if err := preAck(msg); err != nil {
t.l.Error().Msgf("error in pre-ack: %v", err)
t.l.Error().Msgf("error in pre-ack on msg %s: %v", msg.ID, err)
// nack the message
if err := rabbitMsg.Reject(false); err != nil {