mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-31 09:18:28 +00:00
refactor: narrow IAM and Swift compatibility surfaces (#3587)
* refactor: narrow IAM and Swift compatibility surfaces * refactor: narrow heal and scanner compatibility surfaces (#3588) * refactor: narrow RustFS runtime compatibility surfaces (#3591)
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
// limitations under the License.
|
||||
|
||||
use crate::error::{Error, Result};
|
||||
use crate::storage_compat::ecstore::store::ECStore;
|
||||
use crate::storage_compat::IamStore;
|
||||
use manager::IamCache;
|
||||
use oidc::OidcSys;
|
||||
use std::sync::{Arc, OnceLock};
|
||||
@@ -42,7 +42,7 @@ static IAM_SYS: OnceLock<Arc<IamSys<ObjectStore>>> = OnceLock::new();
|
||||
static OIDC_SYS: OnceLock<Arc<OidcSys>> = OnceLock::new();
|
||||
|
||||
#[instrument(skip(ecstore))]
|
||||
pub async fn init_iam_sys(ecstore: Arc<ECStore>) -> Result<()> {
|
||||
pub async fn init_iam_sys(ecstore: Arc<IamStore>) -> Result<()> {
|
||||
if IAM_SYS.get().is_some() {
|
||||
info!(
|
||||
event = EVENT_IAM_STATE,
|
||||
|
||||
Reference in New Issue
Block a user