Skip to content

Commit

Permalink
Merge pull request #3013 from wangdayong228/metrics-for-debug-rpcs
Browse files Browse the repository at this point in the history
support interceptor for geth debug rpcs
  • Loading branch information
wangdayong228 authored Dec 24, 2024
2 parents 48177d5 + e11b05d commit 27209a9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion crates/client/src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,13 @@ fn setup_rpc_apis(
rpc.consensus.clone(),
rpc.config.max_estimation_gas_limit,
);
handler.extend_with(geth_debug.to_delegate());
extend_with_interceptor(
&mut handler,
&rpc.config,
geth_debug.to_delegate(),
throttling_conf,
throttling_section,
);
}
Api::Test => {
handler.extend_with(
Expand Down

0 comments on commit 27209a9

Please sign in to comment.