mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-12 16:16:55 +00:00
refactor(app): add iam and notify interface boundaries (#1948)
This commit is contained in:
@@ -271,14 +271,18 @@ impl DefaultAdminUsecase {
|
||||
}
|
||||
|
||||
pub fn execute_collect_dependency_readiness(&self) -> DependencyReadiness {
|
||||
if let Some(context) = &self.context {
|
||||
let _ = context.object_store();
|
||||
let _ = context.iam();
|
||||
}
|
||||
let iam_ready = self
|
||||
.context
|
||||
.as_ref()
|
||||
.map(|context| {
|
||||
let _ = context.object_store();
|
||||
context.iam().is_ready()
|
||||
})
|
||||
.unwrap_or(false);
|
||||
|
||||
DependencyReadiness {
|
||||
storage_ready: new_object_layer_fn().is_some(),
|
||||
iam_ready: rustfs_iam::get().is_ok(),
|
||||
iam_ready,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user