mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2024-11-20 15:05:19 +00:00
hotfix for admin rpc metrics
Some checks are pending
abi-consistent-check / build-and-compare (push) Waiting to run
code-coverage / unittest-cov (push) Waiting to run
rust / check (push) Waiting to run
rust / test (push) Waiting to run
rust / lints (push) Waiting to run
functional-test / test (push) Waiting to run
Some checks are pending
abi-consistent-check / build-and-compare (push) Waiting to run
code-coverage / unittest-cov (push) Waiting to run
rust / check (push) Waiting to run
rust / test (push) Waiting to run
rust / lints (push) Waiting to run
functional-test / test (push) Waiting to run
This commit is contained in:
parent
908ee156ca
commit
c337ff90fb
@ -258,7 +258,10 @@ impl RpcServer for RpcServerImpl {
|
|||||||
match &maybe_prefix {
|
match &maybe_prefix {
|
||||||
Some(prefix) if !name.starts_with(prefix) => {}
|
Some(prefix) if !name.starts_with(prefix) => {}
|
||||||
_ => {
|
_ => {
|
||||||
result.insert(name.clone(), metric.get_value());
|
result.insert(
|
||||||
|
name.clone(),
|
||||||
|
format!("{} {}", metric.get_type(), metric.get_value()),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user