codec: also apply capacity to read buffer in Framed::with_capacity (#7500)

This commit is contained in:
Lucas Black
2025-08-01 21:26:33 +02:00
committed by GitHub
parent 86cbf81e15
commit 4e3f17bce3
+4 -1
View File
@@ -119,7 +119,10 @@ where
buffer: BytesMut::with_capacity(capacity),
has_errored: false,
},
write: WriteFrame::default(),
write: WriteFrame {
buffer: BytesMut::with_capacity(capacity),
backpressure_boundary: capacity,
},
},
},
}