mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-29 09:08:05 -05:00
fix: use saturating mul for max response size bytes (#5377)
This commit is contained in:
@@ -350,11 +350,11 @@ impl RethRpcConfig for RpcServerArgs {
|
||||
}
|
||||
|
||||
fn rpc_max_request_size_bytes(&self) -> u32 {
|
||||
self.rpc_max_request_size * 1024 * 1024
|
||||
self.rpc_max_request_size.saturating_mul(1024 * 1024)
|
||||
}
|
||||
|
||||
fn rpc_max_response_size_bytes(&self) -> u32 {
|
||||
self.rpc_max_response_size * 1024 * 1024
|
||||
self.rpc_max_response_size.saturating_mul(1024 * 1024)
|
||||
}
|
||||
|
||||
fn gas_price_oracle_config(&self) -> GasPriceOracleConfig {
|
||||
|
||||
Reference in New Issue
Block a user