Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jhesketh committed Jan 13, 2025
1 parent 9a7f06b commit 5af1ae3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/util/pool/bucketed_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ func (p *BucketedPool[T, E]) Put(s T) {

bucketIndex := bits.Len(size - 1)
if bucketIndex >= len(p.buckets) {
// This should never happen as maxSize is checked above, and enforced to be a power of 2
return // Ignore slices larger than the largest bucket
}

Expand Down

0 comments on commit 5af1ae3

Please sign in to comment.