Skip to content

Commit

Permalink
feat(metrics): display
Browse files Browse the repository at this point in the history
  • Loading branch information
0xfourzerofour committed Feb 23, 2024
1 parent a545d7d commit 0e59b6f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/provider/src/ethers/metrics_middleware.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ use ethers::providers::{HttpClientError, JsonRpcClient};
use metrics::{counter, histogram};
use parse_display::Display;
use reqwest::StatusCode;
use serde::{de::DeserializeOwned, Deserialize, Serialize};
use serde::{de::DeserializeOwned, Serialize};
use tokio::time::Instant;

#[derive(Display, Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Display)]
#[display(style = "snake_case")]
enum RpcCode {
ServerError,
InternalError,
Expand All @@ -35,8 +35,8 @@ enum RpcCode {
Other,
}

#[derive(Display, Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Display)]
#[display(style = "snake_case")]
enum HttpCode {
TwoHundreds,
FourHundreds,
Expand Down

0 comments on commit 0e59b6f

Please sign in to comment.