From d1c6caff4713b094c06021e3734c70cb85c4f35b Mon Sep 17 00:00:00 2001 From: nk_ysg Date: Thu, 17 Feb 2022 14:15:32 +0800 Subject: [PATCH] use unix replace macos and linux --- config/src/storage_config.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/config/src/storage_config.rs b/config/src/storage_config.rs index 4c78fff211..6f249e5d6e 100644 --- a/config/src/storage_config.rs +++ b/config/src/storage_config.rs @@ -37,12 +37,7 @@ pub struct RocksdbConfig { } impl RocksdbConfig { - #[cfg(any(target_os = "macos"))] - fn default_max_open_files() -> i32 { - 40960 - } - - #[cfg(any(target_os = "linux"))] + #[cfg(unix)] fn default_max_open_files() -> i32 { 40960 }