Unverified Commit 26871dea authored by Alexandru Vasile's avatar Alexandru Vasile
Browse files

tower_http: Fix warnings


Signed-off-by: default avatarAlexandru Vasile <alexandru.vasile@parity.io>
parent e2da10ca
Pipeline #204908 failed with stages
in 1 minute and 10 seconds
......@@ -28,14 +28,12 @@ use hyper::Server;
use std::iter::once;
use std::net::SocketAddr;
use std::time::Instant;
use tokio::net::TcpListener;
use tower_http::sensitive_headers::SetSensitiveRequestHeadersLayer;
use tower_http::trace::TraceLayer;
use jsonrpsee::core::client::ClientT;
use jsonrpsee::core::middleware::{self, Headers, Params};
use jsonrpsee::http_client::HttpClientBuilder;
use jsonrpsee::http_server::{HttpServerBuilder, HttpServerHandle, RpcModule};
use jsonrpsee::http_server::{HttpServerBuilder, RpcModule};
#[derive(Clone)]
struct Timings;
......@@ -97,7 +95,8 @@ async fn run_server() -> anyhow::Result<SocketAddr> {
let addr = SocketAddr::from(([127, 0, 0, 1], 9935));
println!("[run_server]: Bind server");
tokio::spawn(async move { Server::bind(&addr).serve(service_builder).expect("server error") });
tokio::spawn(async move { Server::bind(&addr).serve(service_builder) });
Ok(addr)
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment