diff --git a/substrate/client/rpc-servers/src/lib.rs b/substrate/client/rpc-servers/src/lib.rs index d41970692a6c0..647a7ca7e4351 100644 --- a/substrate/client/rpc-servers/src/lib.rs +++ b/substrate/client/rpc-servers/src/lib.rs @@ -131,7 +131,7 @@ where let http_middleware = tower::ServiceBuilder::new() .option_layer(host_filter) // Proxy `GET /health, /health/readiness` requests to the internal `system_health` method. - .layer(NodeHealthProxyLayer::new()) + .layer(NodeHealthProxyLayer::default()) .layer(try_into_cors(cors)?); let mut builder = jsonrpsee::server::Server::builder() diff --git a/substrate/client/rpc-servers/src/middleware/node_health.rs b/substrate/client/rpc-servers/src/middleware/node_health.rs index 2843c0e8f1387..d68ec14cb8fef 100644 --- a/substrate/client/rpc-servers/src/middleware/node_health.rs +++ b/substrate/client/rpc-servers/src/middleware/node_health.rs @@ -39,13 +39,6 @@ const HEADER_VALUE_JSON: HeaderValue = HeaderValue::from_static("application/jso #[derive(Debug, Clone, Default)] pub struct NodeHealthProxyLayer; -impl NodeHealthProxyLayer { - /// Creates a new [`NodeHealthProxyLayer`]. - pub fn new() -> Self { - Self - } -} - impl tower::Layer for NodeHealthProxyLayer { type Service = NodeHealthProxy;