mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 04:01:10 +00:00
jsonrpc http server: expose health endpoint (#11395)
This commit is contained in:
@@ -14,7 +14,7 @@ targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
||||
[dependencies]
|
||||
futures = "0.3.21"
|
||||
jsonrpsee = { version = "0.12.0", features = ["server"] }
|
||||
jsonrpsee = { version = "0.13.0", features = ["server"] }
|
||||
log = "0.4.16"
|
||||
serde_json = "1.0.79"
|
||||
tokio = { version = "1.17.0", features = ["parking_lot"] }
|
||||
|
||||
@@ -103,6 +103,7 @@ pub async fn start_http<M: Send + Sync + 'static>(
|
||||
.max_request_body_size(max_payload_in as u32)
|
||||
.max_response_body_size(max_payload_out as u32)
|
||||
.set_access_control(acl.build())
|
||||
.health_api("/health", "system_health")
|
||||
.custom_tokio_runtime(rt);
|
||||
|
||||
let rpc_api = build_rpc_api(rpc_api);
|
||||
|
||||
Reference in New Issue
Block a user