mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: use jsonrpsee server crate directly (#12673)
This commit is contained in:
@ -21,7 +21,7 @@ metrics-util.workspace = true
|
||||
|
||||
tokio.workspace = true
|
||||
|
||||
jsonrpsee = { workspace = true, features = ["server"] }
|
||||
jsonrpsee-server.workspace = true
|
||||
http.workspace = true
|
||||
tower.workspace = true
|
||||
|
||||
|
||||
@ -113,12 +113,12 @@ impl MetricServer {
|
||||
|
||||
let mut shutdown = signal.clone().ignore_guard();
|
||||
tokio::task::spawn(async move {
|
||||
if let Err(error) =
|
||||
jsonrpsee::server::serve_with_graceful_shutdown(io, service, &mut shutdown)
|
||||
let _ =
|
||||
jsonrpsee_server::serve_with_graceful_shutdown(io, service, &mut shutdown)
|
||||
.await
|
||||
{
|
||||
tracing::debug!(%error, "failed to serve request")
|
||||
}
|
||||
.inspect_err(
|
||||
|error| tracing::debug!(%error, "failed to serve request"),
|
||||
);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user