refactor: route app usecase context lookup (#3896)

This commit is contained in:
Zhengchao An
2026-06-26 12:47:48 +08:00
committed by GitHub
parent 2301787afa
commit a038582325
6 changed files with 63 additions and 20 deletions
+2 -2
View File
@@ -58,7 +58,7 @@ use crate::admin::handlers::site_replication::{
site_replication_bucket_meta_hook, site_replication_delete_bucket_hook, site_replication_make_bucket_hook,
};
use crate::app::runtime_sources::{
AppContext, get_global_app_context, resolve_encryption_service, resolve_notification_system,
AppContext, current_app_context, resolve_encryption_service, resolve_notification_system,
resolve_notify_interface_for_context, resolve_object_store_handle_for_context,
};
use crate::auth::get_condition_values_with_client_info;
@@ -767,7 +767,7 @@ impl DefaultBucketUsecase {
pub fn from_global() -> Self {
Self {
context: get_global_app_context(),
context: current_app_context(),
}
}