mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: bump fdlimit (#5819)
This commit is contained in:
@ -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"
|
||||
|
||||
@ -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()?;
|
||||
|
||||
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user