Fix bufPool

This commit is contained in:
Timmy Welch 2024-08-05 13:56:02 -07:00
parent 5cd3cb8dcf
commit 88dd4778eb

View File

@ -20,7 +20,7 @@ var bufPool = sync.Pool{
// The Pool's New function should generally only return pointer // The Pool's New function should generally only return pointer
// types, since a pointer can be put into the return interface // types, since a pointer can be put into the return interface
// value without an allocation: // value without an allocation:
return make([]uint8, 1024) return &[]uint8{}
}, },
} }