Skip to content

Commit

Permalink
fix: meger with master.
Browse files Browse the repository at this point in the history
  • Loading branch information
andysim3d committed Oct 2, 2024
1 parent d62e1b4 commit 2d289da
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 214 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@

# Release artifacts
dist/
Cargo.lock
1 change: 1 addition & 0 deletions crates/rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ pub use task::{Args as RpcTaskArgs, RpcTask};

mod types;
mod utils;
mod rpc_metrics;
2 changes: 1 addition & 1 deletion crates/rpc/src/rpc_metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ where
ErrorCode::MethodNotFound => {
(HttpCode::FourHundreds, RpcCode::MethodNotFound)
}
ErrorCode::ServerIsBusy => (HttpCode::FiveHundreds, RpcCode::ServerIsBusy),
ErrorCode::ServerIsBusy => (HttpCode::FiveHundreds, RpcCode::ResourceExhausted),
ErrorCode::InvalidParams => {
(HttpCode::FourHundreds, RpcCode::InvalidParams)
}
Expand Down
2 changes: 1 addition & 1 deletion crates/rpc/src/task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ where
RpcMetricsMiddlewareLayer::new("rundler-eth-service".to_string());

let server = ServerBuilder::default()
.set_rpc_middleware(metric_middleware)
.set_rpc_middleware(rpc_metric_middleware)
.set_http_middleware(http_middleware)
.max_connections(self.args.max_connections)
// Set max request body size to 2x the max transaction size as none of our
Expand Down
211 changes: 0 additions & 211 deletions crates/task/src/metrics.rs

This file was deleted.

0 comments on commit 2d289da

Please sign in to comment.