initialize_redis_token_swap_workers

Function initialize_redis_token_swap_workers 

Source
pub async fn initialize_redis_token_swap_workers<J, RR, TR, NR, NFR, SR, TCR, PR, AKR>(
    app_state: ThinDataAppState<J, RR, TR, NR, NFR, SR, TCR, PR, AKR>,
    handle: Handle,
    shutdown_rx: Receiver<bool>,
) -> Result<Option<WorkerHandle>>
Expand description

Initializes swap workers for Solana and Stellar relayers. This function creates and registers workers for relayers that have swap enabled and cron schedule set.

shutdown_rx mirrors the SQS/PubSub watch shutdown pattern (see initialize_redis_workers).