chore: bump fdlimit (#5819)

This commit is contained in:
Matthias Seitz
2023-12-18 17:55:19 +01:00
committed by GitHub
parent 342ee4a41b
commit b1d0dc41c2
4 changed files with 6 additions and 6 deletions

5
Cargo.lock generated
View File

@ -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]]

View File

@ -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"

View File

@ -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<Ext: RethCliExt> NodeCommand<Ext> {
// 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()?;

View File

@ -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);