Skip to content

Commit

Permalink
XC-246: remove errNoPermission
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorydemay committed Nov 28, 2024
1 parent 2544848 commit 809c3ff
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion candid/evm_rpc.did
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ type Metrics = record {
responses : vec record { record { text; text; text }; nat64 };
inconsistentResponses : vec record { record { text; text }; nat64 };
cyclesCharged : vec record { record { text; text }; nat };
errNoPermission : nat64;
errHttpOutcall : vec record { record { text; text }; nat64 };
};
type MultiFeeHistoryResult = variant {
Expand Down
5 changes: 0 additions & 5 deletions src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,6 @@ pub fn encode_metrics(w: &mut ic_metrics_encoder::MetricsEncoder<Vec<u8>>) -> st
&m.err_http_outcall,
"Number of unsuccessful HTTP outcalls",
);
w.encode_counter(
"evmrpc_err_no_permission",
m.err_no_permission.metric_value(),
"Number of NoPermission errors",
)?;

Ok(())
})
Expand Down
2 changes: 0 additions & 2 deletions src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,6 @@ pub struct Metrics {
pub inconsistent_responses: HashMap<(MetricRpcMethod, MetricRpcHost), u64>,
#[serde(rename = "cyclesCharged")]
pub cycles_charged: HashMap<(MetricRpcMethod, MetricRpcHost), u128>,
#[serde(rename = "errNoPermission")]
pub err_no_permission: u64,
#[serde(rename = "errHttpOutcall")]
pub err_http_outcall: HashMap<(MetricRpcMethod, MetricRpcHost), u64>,
}
Expand Down

0 comments on commit 809c3ff

Please sign in to comment.