Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
lovromazgon committed Oct 6, 2023
1 parent 7d39ce8 commit dc4310c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions destination.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,17 +379,17 @@ func (w *writeStrategyBatch) writeBatch(batch []writeBatchItem) error {
}

var (
ackRespose error
firstErr error
errOnce bool
ackResponse error
firstErr error
errOnce bool
)
for i, item := range batch {
if i == n {
// records from this index on failed to be written, include the
// error in the response
ackRespose = err
ackResponse = err
}
err := item.ack(ackRespose)
err := item.ack(ackResponse)
if err != nil && !errOnce {
firstErr = err
errOnce = true
Expand Down

0 comments on commit dc4310c

Please sign in to comment.