refactor: prune ecstore root global facades (#3680)

This commit is contained in:
安正超
2026-06-21 09:52:19 +08:00
committed by GitHub
parent d4150117c3
commit d26d98104a
13 changed files with 46 additions and 22 deletions
@@ -890,7 +890,7 @@ impl TransitionState {
tokio::spawn(async move {
Self::inc_counter(&state.compensation_running_tasks);
state.record_scanner_transition_state();
let Some(api) = crate::resolve_object_store_handle() else {
let Some(api) = crate::global::resolve_object_store_handle() else {
scheduled.lock().unwrap().remove(&bucket);
Self::add_counter(&state.compensation_running_tasks, -1);
state.record_scanner_transition_state();
@@ -1909,7 +1909,7 @@ pub async fn enqueue_immediate_expiry(oi: &ObjectInfo, src: LcEventSrc) {
let Some(lifecycle) = GLOBAL_LifecycleSys.get(&oi.bucket).await else {
return;
};
let Some(api) = crate::resolve_object_store_handle() else {
let Some(api) = crate::global::resolve_object_store_handle() else {
return;
};