diff --git a/Cargo.lock b/Cargo.lock index 37708c08ddcc..363c30e52afc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2685,11 +2685,12 @@ dependencies = [ [[package]] name = "fdlimit" -version = "0.2.1" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c4c9e43643f5a3be4ca5b67d26b98031ff9db6806c3440ae32e02e3ceac3f1b" +checksum = "e182f7dbc2ef73d9ef67351c5fbbea084729c48362d3ce9dd44c28e32e277fe5" dependencies = [ "libc", + "thiserror", ] [[package]] diff --git a/bin/reth/Cargo.toml b/bin/reth/Cargo.toml index 4f2a2f1b3570..9dfd694db948 100644 --- a/bin/reth/Cargo.toml +++ b/bin/reth/Cargo.toml @@ -59,7 +59,7 @@ secp256k1 = { workspace = true, features = ["global-context", "rand-std", "recov tracing.workspace = true # io -fdlimit = "0.2.1" +fdlimit = "0.3.0" serde.workspace = true serde_json.workspace = true shellexpand = "3.0.0" diff --git a/bin/reth/src/node/mod.rs b/bin/reth/src/node/mod.rs index 8528fd5c0157..97df7d295ce2 100644 --- a/bin/reth/src/node/mod.rs +++ b/bin/reth/src/node/mod.rs @@ -23,7 +23,6 @@ use crate::{ }; use clap::{value_parser, Parser}; use eyre::Context; -use fdlimit::raise_fd_limit; use futures::{future::Either, pin_mut, stream, stream_select, StreamExt}; use metrics_exporter_prometheus::PrometheusHandle; use reth_auto_seal_consensus::{AutoSealBuilder, AutoSealConsensus, MiningMode}; @@ -243,7 +242,7 @@ impl NodeCommand { // Raise the fd limit of the process. // Does not do anything on windows. - raise_fd_limit(); + let _ = fdlimit::raise_fd_limit(); // get config let config = self.load_config()?; diff --git a/bin/reth/src/stage/run.rs b/bin/reth/src/stage/run.rs index d1b0cbf670cd..22343d4a25a2 100644 --- a/bin/reth/src/stage/run.rs +++ b/bin/reth/src/stage/run.rs @@ -108,7 +108,7 @@ impl Command { pub async fn execute(self) -> eyre::Result<()> { // Raise the fd limit of the process. // Does not do anything on windows. - fdlimit::raise_fd_limit(); + let _ = fdlimit::raise_fd_limit(); // add network name to data dir let data_dir = self.datadir.unwrap_or_chain_default(self.chain.chain);