Skip to content

Commit 2a3cc16

Browse files
Use Result instead of Option due to upcoming changes
1 parent e5da0c5 commit 2a3cc16

File tree

1 file changed

+1
-1
lines changed
  • crates/humanode-peer/src/cli

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ 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() {
41+
if let Ok(new_limit) = fdlimit::raise_fd_limit() {
4242
if new_limit < RECOMMENDED_OPEN_FILE_DESCRIPTOR_LIMIT {
4343
tracing::warn!(
4444
"Low open file descriptor limit configured for the process. \

0 commit comments

Comments
 (0)