Update to Tokio and Bytes 1.0 (#504)
This commit is contained in:
@@ -147,7 +147,7 @@ impl Handle {
|
||||
poll_fn(move |cx| {
|
||||
while buf.has_remaining() {
|
||||
let res = Pin::new(self.codec.get_mut())
|
||||
.poll_write(cx, &mut buf.bytes())
|
||||
.poll_write(cx, &mut buf.chunk())
|
||||
.map_err(|e| panic!("write err={:?}", e));
|
||||
|
||||
let n = ready!(res).unwrap();
|
||||
|
||||
Reference in New Issue
Block a user