From f88b0c4827930813849e3f79d569af696c9f60d9 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 25 Aug 2020 19:52:22 +0000 Subject: [PATCH] Bump MacOS nofile recommendation message (#11834) (cherry picked from commit 8841c3398c4f87a9a6c72943ec8fc8587b642761) Co-authored-by: Trent Nelson --- ledger/src/blockstore.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ledger/src/blockstore.rs b/ledger/src/blockstore.rs index b5a1e9b64d..9dbc507e22 100644 --- a/ledger/src/blockstore.rs +++ b/ledger/src/blockstore.rs @@ -3318,7 +3318,10 @@ fn adjust_ulimit_nofile() -> Result<()> { ); if cfg!(target_os = "macos") { - error!("On mac OS you may need to run |sudo launchctl limit maxfiles 65536 200000| first"); + error!( + "On mac OS you may need to run |sudo launchctl limit maxfiles {} {}| first", + desired_nofile, desired_nofile, + ); } return Err(BlockstoreError::UnableToSetOpenFileDescriptorLimit); }