From e09d8c834f0d87ff1fe568b9a58986b0057576db Mon Sep 17 00:00:00 2001 From: flea Date: Tue, 23 Apr 2024 10:22:19 +0800 Subject: [PATCH] fix constants --- sentinel-core/src/core/config/constant.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sentinel-core/src/core/config/constant.rs b/sentinel-core/src/core/config/constant.rs index a3a2885..9b92a8f 100644 --- a/sentinel-core/src/core/config/constant.rs +++ b/sentinel-core/src/core/config/constant.rs @@ -11,8 +11,8 @@ pub const CONFIG_FILENAME: &str = "USE_DEFAULT_CONFIGURATION"; // default metric log settings pub const FLUSH_INTERVAL_SEC: u32 = 1; -pub const SINGLE_FILE_MAX_SIZE: u64 = 100; // 1024 * 1024 * 50; -pub const MAX_FILE_AMOUNT: usize = 2; //8; +pub const SINGLE_FILE_MAX_SIZE: u64 = 1024 * 1024 * 50; // 1024 * 1024 * 50; +pub const MAX_FILE_AMOUNT: usize = 8; //8; pub const EXPORTER_ADDR: &str = "127.0.0.1:9091"; pub const EXPORTER_METRICS_PATH: &str = "/metrics";