Skip to content

Commit

Permalink
fix: reduce capacity of LRU slice during Pop
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoutsovasilis committed Jul 8, 2024
1 parent a19dfcb commit c0dbb72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/filebeat/input/netflow/decoder/v9/lru.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (h *pendingEventsHeap) Pop() any {
old := *h
n := len(old)
x := old[n-1]
*h = old[0 : n-1]
*h = old[0 : n-1 : n-1]
return x
}

Expand Down

0 comments on commit c0dbb72

Please sign in to comment.