diff --git a/metadapta.go b/metadapta.go index de9bcc1..ab0866d 100644 --- a/metadapta.go +++ b/metadapta.go @@ -279,12 +279,6 @@ func (this *transA) SendWriter(method uint16) (io.WriteCloser, error) { // create new writer writer := &writerA { 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), method: method, chunkSize: defaultChunkSize,