File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
crates/humanode-peer/src/cli Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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.
4040pub 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 }
You can’t perform that action at this time.
0 commit comments