From dc4310c7e24a99d6fae5dea26281e4a7a9e6e4ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lovro=20Ma=C5=BEgon?= Date: Fri, 6 Oct 2023 21:01:31 +0200 Subject: [PATCH] fix typo --- destination.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/destination.go b/destination.go index 24659c8..c553f7a 100644 --- a/destination.go +++ b/destination.go @@ -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