Skip to content

Commit

Permalink
Merge pull request #72 from BoskyWSMFN/master
Browse files Browse the repository at this point in the history
fix-panic
  • Loading branch information
mochi-co authored Apr 19, 2022
2 parents aed535b + 7dee729 commit b53774f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/internal/circ/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ import (

// BytesPool is a pool of []byte.
type BytesPool struct {
// int64/uint64 has to the first words in order
// to be 64-aligned on 32-bit architectures.
used int64 // access atomically
pool *sync.Pool
used int64
}

// NewBytesPool returns a sync.pool of []byte.
Expand Down

0 comments on commit b53774f

Please sign in to comment.