From 5163a627450aa7225b2030cccdc12901f4afb14c Mon Sep 17 00:00:00 2001 From: amirylm Date: Wed, 13 Mar 2024 15:11:24 +0200 Subject: [PATCH] fix slice alloc --- .../plugins/ocr2keeper/evmregistry/v21/logprovider/buffer_v1.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/services/ocr2/plugins/ocr2keeper/evmregistry/v21/logprovider/buffer_v1.go b/core/services/ocr2/plugins/ocr2keeper/evmregistry/v21/logprovider/buffer_v1.go index bd7d2b66570..7f9e64f2b0a 100644 --- a/core/services/ocr2/plugins/ocr2keeper/evmregistry/v21/logprovider/buffer_v1.go +++ b/core/services/ocr2/plugins/ocr2keeper/evmregistry/v21/logprovider/buffer_v1.go @@ -220,7 +220,7 @@ func (ub *upkeepLogBuffer) dequeue(start, end int64, limit int) ([]logpoller.Log var results []logpoller.Log var remaining int - updatedLogs := make([]logpoller.Log, 0, ub.maxLogs.Load()) + updatedLogs := make([]logpoller.Log, 0) for _, l := range ub.q { if l.BlockNumber >= start && l.BlockNumber <= end { if len(results) < limit {