Skip to content

Commit ed6aafe

Browse files
dependabot[bot]github-actions[bot]dmitrylavrenov
authored
Bump fdlimit from 0.2.1 to 0.3.0 (#1638)
* Bump fdlimit from 0.2.1 to 0.3.0 Bumps [fdlimit](https://github.com/paritytech/fdlimit) from 0.2.1 to 0.3.0. - [Commits](https://github.com/paritytech/fdlimit/commits) --- updated-dependencies: - dependency-name: fdlimit dependency-version: 0.3.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Update features snapshot * Use Result instead of Option due to upcoming changes --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Dmitry Lavrenov <lawrenowdima@gmail.com>
1 parent b6d3bd8 commit ed6aafe

File tree

4 files changed

+18
-6
lines changed

4 files changed

+18
-6
lines changed

Cargo.lock

Lines changed: 12 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ ed25519-dalek = { version = "2", default-features = false }
2323
ethereum = { version = "0.14", default-features = false }
2424
ethers-core = { version = "2.0.14", default-features = false }
2525
evm = { git = "https://github.com/rust-blockchain/evm", rev = "b7b82c7e1fc57b7449d6dfa6826600de37cc1e65", default-features = false }
26-
fdlimit = { version = "0.2", default-features = false }
26+
fdlimit = { version = "0.3", default-features = false }
2727
futures = { version = "0.3", default-features = false }
2828
getrandom = { version = "0.3", default-features = false }
2929
hex = { version = "0.4", default-features = false }

crates/humanode-peer/src/cli/init.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ const RECOMMENDED_OPEN_FILE_DESCRIPTOR_LIMIT: u64 = 10_000;
3838
/// We require a substantial amount of fds for the networking, so raise it, and report if the raised
3939
/// limit is still way too low.
4040
pub fn raise_fd_limit() {
41-
if let Some(new_limit) = fdlimit::raise_fd_limit() {
42-
if new_limit < RECOMMENDED_OPEN_FILE_DESCRIPTOR_LIMIT {
41+
if let Ok(fdlimit::Outcome::LimitRaised { from: _, to }) = fdlimit::raise_fd_limit() {
42+
if to < RECOMMENDED_OPEN_FILE_DESCRIPTOR_LIMIT {
4343
tracing::warn!(
4444
"Low open file descriptor limit configured for the process. \
4545
Current value: {:?}, recommended value: {:?}.",
46-
new_limit,
46+
to,
4747
RECOMMENDED_OPEN_FILE_DESCRIPTOR_LIMIT,
4848
);
4949
}

utils/checks/snapshots/features.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -895,6 +895,8 @@
895895
features: []
896896
- name: fdlimit 0.2.1
897897
features: []
898+
- name: fdlimit 0.3.0
899+
features: []
898900
- name: ff 0.13.0
899901
features:
900902
- alloc

0 commit comments

Comments
 (0)