Function set_global_init_completed

Source
pub async fn set_global_init_completed(
    pool: &Arc<Pool>,
    prefix: &str,
) -> Result<()>
Expand description

Sets the global initialization completion timestamp to the current time.

This should be called after all relayers have been successfully initialized to record when the initialization occurred.

§Arguments

  • conn - Redis connection manager
  • prefix - Key prefix for multi-tenant support

§Redis Key Format

Hash key: {prefix}:relayer_sync_meta Hash field: global:init_completed Value: Unix timestamp in seconds