Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ed25519-dalek = { version = "2", default-features = false }
ethereum = { version = "0.14", default-features = false }
ethers-core = { version = "2.0.14", default-features = false }
evm = { git = "https://github.com/rust-blockchain/evm", rev = "b7b82c7e1fc57b7449d6dfa6826600de37cc1e65", default-features = false }
fdlimit = { version = "0.2", default-features = false }
fdlimit = { version = "0.3", default-features = false }
futures = { version = "0.3", default-features = false }
getrandom = { version = "0.3", default-features = false }
hex = { version = "0.4", default-features = false }
Expand Down
6 changes: 3 additions & 3 deletions crates/humanode-peer/src/cli/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ const RECOMMENDED_OPEN_FILE_DESCRIPTOR_LIMIT: u64 = 10_000;
/// We require a substantial amount of fds for the networking, so raise it, and report if the raised
/// limit is still way too low.
pub fn raise_fd_limit() {
if let Some(new_limit) = fdlimit::raise_fd_limit() {
if new_limit < RECOMMENDED_OPEN_FILE_DESCRIPTOR_LIMIT {
if let Ok(fdlimit::Outcome::LimitRaised { from: _, to }) = fdlimit::raise_fd_limit() {
if to < RECOMMENDED_OPEN_FILE_DESCRIPTOR_LIMIT {
tracing::warn!(
"Low open file descriptor limit configured for the process. \
Current value: {:?}, recommended value: {:?}.",
new_limit,
to,
RECOMMENDED_OPEN_FILE_DESCRIPTOR_LIMIT,
);
}
Expand Down
2 changes: 2 additions & 0 deletions utils/checks/snapshots/features.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -895,6 +895,8 @@
features: []
- name: fdlimit 0.2.1
features: []
- name: fdlimit 0.3.0
features: []
- name: ff 0.13.0
features:
- alloc
Expand Down
Loading