diff --git a/zebra-rpc/src/server/http_request_compatibility.rs b/zebra-rpc/src/server/http_request_compatibility.rs index d9ef729b084..ebbf49c05d3 100644 --- a/zebra-rpc/src/server/http_request_compatibility.rs +++ b/zebra-rpc/src/server/http_request_compatibility.rs @@ -6,7 +6,7 @@ use std::future::Future; use std::pin::Pin; -use futures::{future, FutureExt, TryFutureExt}; +use futures::{future, FutureExt}; use http_body_util::BodyExt; use hyper::{body::Bytes, header}; use jsonrpsee::{ @@ -175,7 +175,7 @@ impl With for HttpRequestMiddleware { impl Service> for HttpRequestMiddleware where - S: Service, + S: Service + std::clone::Clone + Send + 'static, S::Error: Into + 'static, S::Future: Send + 'static, {