pub(crate) async fn init_authorization() {
    let e = get_enforcer().await.unwrap();
    match EF.set(Arc::new(RwLock::new(e))) {
        Ok(_o) => debug!("init casbin success!!!"),
        Err(_e) => error!("init casbin failed!!!"),
    };
}
/// init casbin enforcer, thread safe.
init casbin enforcer, thread safe.
init casbin enforcer thread safe .
pub(crate) async fn init_authorization() {
    let e = get_enforcer().await.unwrap();
    match EF.set(Arc::new(RwLock::new(e))) {
        Ok(_o) => debug!("init casbin success!!!"),
        Err(_e) => error!("init casbin failed!!!"),
    };
}
pub ( crate ) async fn init_authorization ( ) { let e = get_enforcer ( ) . await . unwrap ( ) ; match EF . set ( Arc :: new ( RwLock :: new ( e ) ) ) { Ok ( _o ) => debug ! ( " " ) , Err ( _e ) => error ! ( " " ) , } ; }
init casbin enforcer, thread safe.
init casbin enforcer thread safe .