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

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