From 777087f8bb86a837f8434bace7e78e60e1643fd6 Mon Sep 17 00:00:00 2001 From: fakeshadow <24548779@qq.com> Date: Sat, 5 Dec 2020 13:57:59 +0800 Subject: [PATCH] fix poll_read_buf --- actix-http-test/Cargo.toml | 2 +- actix-http/src/h1/dispatcher.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/actix-http-test/Cargo.toml b/actix-http-test/Cargo.toml index 58f962a1d..c08ac79cc 100644 --- a/actix-http-test/Cargo.toml +++ b/actix-http-test/Cargo.toml @@ -39,7 +39,7 @@ actix-testing = "1.0.0" awc = "2.0.0" base64 = "0.13" -bytes = "0.5" +bytes = "0.6" futures-core = { version = "0.3.5", default-features = false } http = "0.2.0" log = "0.4" diff --git a/actix-http/src/h1/dispatcher.rs b/actix-http/src/h1/dispatcher.rs index 27045b126..03f2b32f6 100644 --- a/actix-http/src/h1/dispatcher.rs +++ b/actix-http/src/h1/dispatcher.rs @@ -912,8 +912,7 @@ fn read( where T: AsyncRead + Unpin, { - // FIXME: use tokio-util poll_read_buf - actix_codec::util::poll_read_buf(Pin::new(io), cx, buf) + actix_codec::poll_read_buf(Pin::new(io), cx, buf) } #[cfg(test)]