mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-20 20:55:41 +00:00
fix warnings in grafana module (#4486)
This commit is contained in:
@@ -71,10 +71,15 @@ pub fn record_metrics_slice(metrics: &[(&str, f32)]) -> Result<(), Error> {
|
|||||||
/// Error type that can be returned by either `record_metrics` or `run_server`.
|
/// Error type that can be returned by either `record_metrics` or `run_server`.
|
||||||
#[derive(Debug, derive_more::Display, derive_more::From)]
|
#[derive(Debug, derive_more::Display, derive_more::From)]
|
||||||
pub enum Error {
|
pub enum Error {
|
||||||
|
/// Hyper internal error.
|
||||||
Hyper(hyper::Error),
|
Hyper(hyper::Error),
|
||||||
|
/// Serialization/deserialization error.
|
||||||
Serde(serde_json::Error),
|
Serde(serde_json::Error),
|
||||||
|
/// Http request error.
|
||||||
Http(hyper::http::Error),
|
Http(hyper::http::Error),
|
||||||
|
/// Timestamp error.
|
||||||
Timestamp(TryFromIntError),
|
Timestamp(TryFromIntError),
|
||||||
|
/// i/o error.
|
||||||
Io(std::io::Error)
|
Io(std::io::Error)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user