async fn launch_ready_operation(
    pool: Arc<db::ConnectionPool>,
    request_client: RequestClient,
    #[cfg(AUTH_CASBIN)] enforcer: Arc<RwLock<Enforcer>>,
) {
    launch_health_check(pool.clone(), request_client);
    launch_operation_log_consumer(pool);

    #[cfg(AUTH_CASBIN)]
    {
        // When the delicate starts, it checks if the resource acquisition is normal.
        let redis_url = env::var("REDIS_URL").expect("The redis url could not be acquired.");
        let redis_client = redis::Client::open(redis_url)
            .expect("The redis client resource could not be initialized.");
        launch_casbin_rule_events_consumer(redis_client, enforcer);
    }
}
// All ready work when the delicate-application starts.
All ready work when the delicate-application starts.
All ready work when the delicate - application starts .
async fn launch_ready_operation(
    pool: Arc<db::ConnectionPool>,
    request_client: RequestClient,
    #[cfg(AUTH_CASBIN)] enforcer: Arc<RwLock<Enforcer>>,
) {
    launch_health_check(pool.clone(), request_client);
    launch_operation_log_consumer(pool);
    #[cfg(AUTH_CASBIN)]
    {
        // When the delicate starts, it checks if the resource acquisition is normal.
        let redis_url = env::var("REDIS_URL").expect("The redis url could not be acquired.");
        let redis_client = redis::Client::open(redis_url)
            .expect("The redis client resource could not be initialized.");
        launch_casbin_rule_events_consumer(redis_client, enforcer);
    }
}
async fn launch_ready_operation ( pool : Arc < db :: ConnectionPool > , request_client : RequestClient , # [ cfg ( AUTH_CASBIN ) ] enforcer : Arc < RwLock < Enforcer > > , ) { launch_health_check ( pool . clone ( ) , request_client ) ; launch_operation_log_consumer ( pool ) ; # [ cfg ( AUTH_CASBIN ) ] { // When the delicate starts, it checks if the resource acquisition is normal. let redis_url = env :: var ( " " ) . expect ( " " ) ; let redis_client = redis :: Client :: open ( redis_url ) . expect ( " " ) ; launch_casbin_rule_events_consumer ( redis_client , enforcer ) ; } }
All ready work when the delicate-application starts.
All ready work when the delicate - application starts .
pool
Arc<db::ConnectionPool>
request_client
RequestClient
enforcer
Arc<RwLock<Enforcer>>
pool
Arc<db::ConnectionPool>
request_client
RequestClient
enforcer
Arc<RwLock<Enforcer>>