Skip to content

Commit

Permalink
fix wrong length when initializing bytes buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
tiltwind committed Apr 28, 2023
1 parent 2231591 commit 747c968
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ func Panicln(a ...any) {

var (
bytesPool = sync.Pool{New: func() any {
b := make([]byte, 1024)
b := make([]byte, 0, 1024)
return &b
}}
)
Expand Down

0 comments on commit 747c968

Please sign in to comment.