refactor(config): normalize scanner env naming (#2129)

This commit is contained in:
安正超
2026-03-11 22:41:41 +08:00
committed by GitHub
parent aa84d34bf8
commit 83fb530609
4 changed files with 50 additions and 6 deletions
+7 -2
View File
@@ -14,10 +14,15 @@
use std::time::Duration;
/// Environment variable name that specifies the data scanner start delay in seconds.
/// Canonical environment variable name that specifies the scanner start delay in seconds.
/// If set, this overrides the cycle interval derived from `RUSTFS_SCANNER_SPEED`.
/// - Unit: seconds (u64).
/// - Example: `export RUSTFS_DATA_SCANNER_START_DELAY_SECS=10`
/// - Example: `export RUSTFS_SCANNER_START_DELAY_SECS=10`
pub const ENV_SCANNER_START_DELAY_SECS: &str = "RUSTFS_SCANNER_START_DELAY_SECS";
/// Deprecated compatibility alias for scanner start delay.
/// Prefer `RUSTFS_SCANNER_START_DELAY_SECS`.
#[deprecated(note = "Use RUSTFS_SCANNER_START_DELAY_SECS instead")]
pub const ENV_DATA_SCANNER_START_DELAY_SECS: &str = "RUSTFS_DATA_SCANNER_START_DELAY_SECS";
/// Environment variable that selects the scanner speed preset.