Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix middleware service clone. #894

Merged
merged 1 commit into from
Nov 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wondering, where did this come from?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is for local test only. I copied it from polygon.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, if just used for your local testing we should remove this from the repo.

bloxroute_enabled = true
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this 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
Loading