Skip to content

Commit

Permalink
chore: export NodeHealthProxyLayer (#5768)
Browse files Browse the repository at this point in the history
Co-authored-by: command-bot <>
  • Loading branch information
yjhmelody committed Sep 23, 2024
1 parent e8dad10 commit 3962ec0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
10 changes: 10 additions & 0 deletions prdoc/pr_5768.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
title: "export NodeHealthProxyLayer"

doc:
- audience: Node Dev
description: |
This PR export `NodeHealthProxyLayer` from sc-rpc-server.

crates:
- name: sc-rpc-server
bump: patch
3 changes: 1 addition & 2 deletions substrate/client/rpc-servers/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ use jsonrpsee::{
},
Methods, RpcModule,
};
use middleware::NodeHealthProxyLayer;
use tower::Service;
use utils::{
build_rpc_api, deny_unsafe, format_listen_addrs, get_proxy_ip, ListenAddrError, RpcSettings,
Expand All @@ -43,7 +42,7 @@ pub use jsonrpsee::{
core::id_providers::{RandomIntegerIdProvider, RandomStringIdProvider},
server::{middleware::rpc::RpcServiceBuilder, BatchRequestConfig},
};
pub use middleware::{Metrics, MiddlewareLayer, RpcMetrics};
pub use middleware::{Metrics, MiddlewareLayer, NodeHealthProxyLayer, RpcMetrics};
pub use utils::{RpcEndpoint, RpcMethods};

const MEGABYTE: u32 = 1024 * 1024;
Expand Down

0 comments on commit 3962ec0

Please sign in to comment.