Skip to content

Commit

Permalink
fix max pool size (#5654)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijian-pro authored Feb 13, 2025
1 parent ca31f21 commit 06310f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/utils/alloc.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ func PowerOf2(s int) int {
}

func init() {
pools = make([]*sync.Pool, 33) // 1 - 8G
for i := 0; i < 33; i++ {
pools = make([]*sync.Pool, 34) // 1 - 8G
for i := 0; i < 34; i++ {
func(bits int) {
pools[i] = &sync.Pool{
New: func() interface{} {
Expand Down

0 comments on commit 06310f7

Please sign in to comment.