fix poll_read_buf

This commit is contained in:
fakeshadow 2020-12-05 13:57:59 +08:00
parent 4ffcaa70ce
commit 777087f8bb
2 changed files with 2 additions and 3 deletions

View File

@ -39,7 +39,7 @@ actix-testing = "1.0.0"
awc = "2.0.0" awc = "2.0.0"
base64 = "0.13" base64 = "0.13"
bytes = "0.5" bytes = "0.6"
futures-core = { version = "0.3.5", default-features = false } futures-core = { version = "0.3.5", default-features = false }
http = "0.2.0" http = "0.2.0"
log = "0.4" log = "0.4"

View File

@ -912,8 +912,7 @@ fn read<T>(
where where
T: AsyncRead + Unpin, T: AsyncRead + Unpin,
{ {
// FIXME: use tokio-util poll_read_buf actix_codec::poll_read_buf(Pin::new(io), cx, buf)
actix_codec::util::poll_read_buf(Pin::new(io), cx, buf)
} }
#[cfg(test)] #[cfg(test)]