Remove stale comment

This commit is contained in:
Sasha Koshka 2025-11-19 20:52:33 -05:00
parent 8c564e4755
commit cdda4f932d

View File

@ -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,