Skip to content

Commit

Permalink
add message state on conflict error
Browse files Browse the repository at this point in the history
  • Loading branch information
shorsher committed Nov 1, 2024
1 parent 74c139d commit e4a24f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/batch/batch_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,7 @@ func (bp *batchProcessor) dispatchBatch(payload *DispatchPayload) error {
conflictErr, conflictTestOk := err.(operations.ConflictError)
if conflictTestOk && conflictErr.IsConflictError() {
// We know that the connector has received our batch, so we shouldn't need to retry
payload.addMessageUpdate(payload.Messages, core.MessageStateReady, core.MessageStateSent)
return true, nil
}
} else {
Expand Down

0 comments on commit e4a24f3

Please sign in to comment.