refactor(app): decouple AppContext adapters from GLOBAL statics (#1970)

This commit is contained in:
安正超
2026-02-26 14:54:45 +08:00
committed by GitHub
parent 40692f18ed
commit 49579129c1
4 changed files with 23 additions and 8 deletions
+8
View File
@@ -150,6 +150,14 @@ pub fn get_global_endpoints() -> EndpointServerPools {
}
}
pub fn get_global_endpoints_opt() -> Option<EndpointServerPools> {
GLOBAL_Endpoints.get().cloned()
}
pub fn get_global_tier_config_mgr() -> Arc<RwLock<TierConfigMgr>> {
GLOBAL_TierConfigMgr.clone()
}
/// Create a new object layer instance
///
/// # Returns