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:
5
Cargo.lock
generated
5
Cargo.lock
generated
@ -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]]
|
||||
|
||||
@ -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