mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 23:57:56 +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`.
|
||||
#[derive(Debug, derive_more::Display, derive_more::From)]
|
||||
pub enum Error {
|
||||
/// Hyper internal error.
|
||||
Hyper(hyper::Error),
|
||||
/// Serialization/deserialization error.
|
||||
Serde(serde_json::Error),
|
||||
/// Http request error.
|
||||
Http(hyper::http::Error),
|
||||
/// Timestamp error.
|
||||
Timestamp(TryFromIntError),
|
||||
/// i/o error.
|
||||
Io(std::io::Error)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user