Fix bufPool
This commit is contained in:
parent
5cd3cb8dcf
commit
88dd4778eb
@ -20,7 +20,7 @@ var bufPool = sync.Pool{
|
||||
// The Pool's New function should generally only return pointer
|
||||
// types, since a pointer can be put into the return interface
|
||||
// value without an allocation:
|
||||
return make([]uint8, 1024)
|
||||
return &[]uint8{}
|
||||
},
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user