diff --git a/libbeat/publisher/queue/memqueue/broker.go b/libbeat/publisher/queue/memqueue/broker.go index b617bae61102..e060eedb85e6 100644 --- a/libbeat/publisher/queue/memqueue/broker.go +++ b/libbeat/publisher/queue/memqueue/broker.go @@ -290,7 +290,7 @@ var batchPool = sync.Pool{ } func newBatch(queue *broker, start, count int) *batch { - batch := batchPool.Get().(*batch) + batch := batchPool.Get().(*batch) //nolint: errcheck // we want this to panic if there's an error batch.next = nil batch.queue = queue batch.start = start