Skip to content

Commit

Permalink
fix slice alloc
Browse files Browse the repository at this point in the history
  • Loading branch information
amirylm committed Mar 13, 2024
1 parent e8d2266 commit 5163a62
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5163a62

Please sign in to comment.