mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-22 04:16:38 +00:00
Chore: rename init_heal_manager_with_channel
Signed-off-by: junxiang Mu <1948535941@qq.com>
This commit is contained in:
@@ -63,7 +63,7 @@ static GLOBAL_HEAL_MANAGER: OnceLock<Arc<HealManager>> = OnceLock::new();
|
|||||||
static GLOBAL_HEAL_CHANNEL_PROCESSOR: OnceLock<Arc<tokio::sync::Mutex<HealChannelProcessor>>> = OnceLock::new();
|
static GLOBAL_HEAL_CHANNEL_PROCESSOR: OnceLock<Arc<tokio::sync::Mutex<HealChannelProcessor>>> = OnceLock::new();
|
||||||
|
|
||||||
/// Initialize and start heal manager with channel processor
|
/// Initialize and start heal manager with channel processor
|
||||||
pub async fn init_heal_manager_with_channel(
|
pub async fn init_heal_manager(
|
||||||
storage: Arc<dyn heal::storage::HealStorageAPI>,
|
storage: Arc<dyn heal::storage::HealStorageAPI>,
|
||||||
config: Option<heal::manager::HealConfig>,
|
config: Option<heal::manager::HealConfig>,
|
||||||
) -> Result<()> {
|
) -> Result<()> {
|
||||||
|
|||||||
+2
-2
@@ -30,7 +30,7 @@ use clap::Parser;
|
|||||||
use license::init_license;
|
use license::init_license;
|
||||||
use rustfs_ahm::scanner::data_scanner::ScannerConfig;
|
use rustfs_ahm::scanner::data_scanner::ScannerConfig;
|
||||||
use rustfs_ahm::{
|
use rustfs_ahm::{
|
||||||
Scanner, create_ahm_services_cancel_token, heal::storage::ECStoreHealStorage, init_heal_manager_with_channel,
|
Scanner, create_ahm_services_cancel_token, heal::storage::ECStoreHealStorage, init_heal_manager,
|
||||||
shutdown_ahm_services,
|
shutdown_ahm_services,
|
||||||
};
|
};
|
||||||
use rustfs_common::globals::set_global_addr;
|
use rustfs_common::globals::set_global_addr;
|
||||||
@@ -191,7 +191,7 @@ async fn run(opt: config::Opt) -> Result<()> {
|
|||||||
|
|
||||||
// Initialize heal manager with channel processor
|
// Initialize heal manager with channel processor
|
||||||
let heal_storage = Arc::new(ECStoreHealStorage::new(store.clone()));
|
let heal_storage = Arc::new(ECStoreHealStorage::new(store.clone()));
|
||||||
init_heal_manager_with_channel(heal_storage, None).await?;
|
init_heal_manager(heal_storage, None).await?;
|
||||||
|
|
||||||
let scanner = Scanner::new(Some(ScannerConfig::default()), None);
|
let scanner = Scanner::new(Some(ScannerConfig::default()), None);
|
||||||
scanner.start().await?;
|
scanner.start().await?;
|
||||||
|
|||||||
Reference in New Issue
Block a user