mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-17 00:00:11 +02:00
codec: also apply capacity to read buffer in Framed::with_capacity (#7500)
This commit is contained in:
@@ -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,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user