Skip to content

Commit

Permalink
fix: fix middleware service clone.
Browse files Browse the repository at this point in the history
  • Loading branch information
andysim3d committed Oct 31, 2024
1 parent f09781e commit bcf4eee
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
7 changes: 7 additions & 0 deletions bin/rundler/chain_specs/opbnb_testnet.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name = "Opbnb Testnet"
id = 5611

priority_fee_oracle_type = "USAGE_BASED"
min_max_priority_fee_per_gas = 30000000000
bloxroute_enabled = true
max_transaction_size_bytes = 130000
3 changes: 2 additions & 1 deletion bin/rundler/src/cli/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,5 +123,6 @@ define_hardcoded_chain_specs!(
polygon_amoy,
avax,
bera_bartio,
avax_fuji
avax_fuji,
opbnb_testnet
);
4 changes: 2 additions & 2 deletions crates/provider/src/alloy/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ where
method_name.clone(),
"rpc".to_string(),
);
let mut svc = self.service.clone();
let fut = self.service.call(request);
async move {
let response = svc.call(request).await;
let response = fut.await;
method_logger.done();
match &response {
Ok(resp) => {
Expand Down

0 comments on commit bcf4eee

Please sign in to comment.