jsonrpc http server: expose health endpoint (#11395)

This commit is contained in:
Niklas Adolfsson authored and GitHub committed 2022-05-11 10:39:39 +00:00
1 parent 52d9bf24cc
commit 79b1aa5677
22 files changed
+40 -39

No files matched your search

+1
View File
@@ -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);