fix(iam): store previous credentials in .rustfs.sys bucket to preserv… (#1213)

This commit is contained in:
yxrxy
2025-12-20 19:15:49 +08:00
committed by GitHub
parent 1e35edf079
commit b5535083de
2 changed files with 97 additions and 16 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ static IAM_SYS: OnceLock<Arc<IamSys<ObjectStore>>> = OnceLock::new();
#[instrument(skip(ecstore))]
pub async fn init_iam_sys(ecstore: Arc<ECStore>) -> Result<()> {
debug!("init iam system");
let s = IamCache::new(ObjectStore::new(ecstore)).await;
let s = IamCache::new(ObjectStore::new(ecstore).await).await;
IAM_SYS.get_or_init(move || IamSys::new(s).into());
Ok(())