refactor(app): route admin/object globals through AppContext (#1954)

This commit is contained in:
安正超
2026-02-25 18:01:52 +08:00
committed by GitHub
parent 52090d72d6
commit aea7f41149
2 changed files with 2 additions and 8 deletions
+1 -4
View File
@@ -201,10 +201,7 @@ impl DefaultObjectUsecase {
}
fn bucket_metadata_sys(&self) -> Option<Arc<RwLock<metadata_sys::BucketMetadataSys>>> {
self.context
.as_ref()
.and_then(|context| context.bucket_metadata().handle())
.or_else(|| rustfs_ecstore::bucket::metadata_sys::GLOBAL_BucketMetadataSys.get().cloned())
self.context.as_ref().and_then(|context| context.bucket_metadata().handle())
}
#[instrument(level = "debug", skip(self, fs, req))]