Fix Tokio Runtime Initialization: Remove Private API Usage and Ensure IO Enabled (#587)

* fix: remove code

* improve code for tokio runtime config

* improve code for main

* fix: add tokio enable_all

* upgrade version

* improve for Cargo.toml
This commit is contained in:
houseme
2025-09-24 22:23:31 +08:00
committed by GitHub
parent 12ecb36c6d
commit 9b7f4d477a
20 changed files with 221 additions and 80 deletions
+5
View File
@@ -170,6 +170,11 @@ pub const DEFAULT_LOG_KEEP_FILES: u16 = 30;
/// Example: --external-address ":9020"
pub const ENV_EXTERNAL_ADDRESS: &str = "RUSTFS_EXTERNAL_ADDRESS";
/// 1 KiB
pub const KI_B: usize = 1024;
/// 1 MiB
pub const MI_B: usize = 1024 * 1024;
#[cfg(test)]
mod tests {
use super::*;