diff --git a/Cargo.toml b/Cargo.toml index a3865fc04..b4cc48dae 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,7 @@ keywords = ["http", "actix-web", "tracing", "logging"] categories = ["asynchronous", "web-programming"] [dependencies] -actix-web = "4.0.0-beta.1" +actix-web = "4.0.0-beta.3" tracing = "0.1.19" tracing-futures = "0.2.4" futures = "0.3.5" diff --git a/src/lib.rs b/src/lib.rs index b39d1a7e7..c7c460049 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -167,11 +167,11 @@ where type Error = Error; type Future = Pin>>>; - fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll> { + fn poll_ready(&self, cx: &mut Context<'_>) -> Poll> { self.service.poll_ready(cx) } - fn call(&mut self, req: ServiceRequest) -> Self::Future { + fn call(&self, req: ServiceRequest) -> Self::Future { let user_agent = req .headers() .get("User-Agent")