From 8841c3398c4f87a9a6c72943ec8fc8587b642761 Mon Sep 17 00:00:00 2001 From: Trent Nelson Date: Thu, 20 Aug 2020 16:15:05 -0600 Subject: [PATCH] Bump MacOS nofile recommendation message --- 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 a2dc7165ef..89ac5decdd 100644 --- a/ledger/src/blockstore.rs +++ b/ledger/src/blockstore.rs @@ -3311,7 +3311,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); }