As I known, the sync.Pool in golang , you must use get/put together. But the code below https://github.com/c4milo/gsync/blob/master/gsync_client.go#L109 you only bufferPool.Put(bfp) when the err is io.EOF, is this ok?
As I known, the sync.Pool in golang , you must use get/put together. But the code below
https://github.com/c4milo/gsync/blob/master/gsync_client.go#L109
you only bufferPool.Put(bfp) when the err is io.EOF, is this ok?