Remove stale comment
This commit is contained in:
parent
8c564e4755
commit
cdda4f932d
@ -279,12 +279,6 @@ func (this *transA) SendWriter(method uint16) (io.WriteCloser, error) {
|
|||||||
// create new writer
|
// create new writer
|
||||||
writer := &writerA {
|
writer := &writerA {
|
||||||
parent: this,
|
parent: this,
|
||||||
// there is only ever one writer at a time, so they can all
|
|
||||||
// share a buffer
|
|
||||||
// FIXME: use a buffer pool, and just reset the buffers before putting them
|
|
||||||
// back in. it will work just fine bc we dont ever allocate more than the chunk
|
|
||||||
// size anyway. perhaps create some sort of config value that disables this
|
|
||||||
// behavior and just uses one buffer
|
|
||||||
buffer: bufferPool.Get().(*bytes.Buffer),
|
buffer: bufferPool.Get().(*bytes.Buffer),
|
||||||
method: method,
|
method: method,
|
||||||
chunkSize: defaultChunkSize,
|
chunkSize: defaultChunkSize,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user