Skip to content

Commit

Permalink
Making retry behaviour work as expected
Browse files Browse the repository at this point in the history
  • Loading branch information
zveinn committed Jan 31, 2025
1 parent f30c518 commit ec77273
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kgo/sink.go
Original file line number Diff line number Diff line change
Expand Up @@ -1613,7 +1613,7 @@ func (b *recBatch) maybeFailErr(cfg *cfg) error {
switch {
case b.isTimedOut(cfg.recordTimeout):
return ErrRecordTimeout
case b.tries >= cfg.recordRetries:
case b.tries > cfg.recordRetries:
return ErrRecordRetries
case b.owner.cl.producer.isAborting():
return ErrAborting
Expand Down

0 comments on commit ec77273

Please sign in to comment.