Skip to main content

run_periodic_sync

Function run_periodic_sync 

Source
pub async fn run_periodic_sync(
    sync_state: SharedSyncState,
    shutdown_rx: Receiver<()>,
)
Expand description

Runs the periodic sync timer.

This function runs until the shutdown signal is received. It checks periodically if a sync is needed and performs it if credentials and encryption key are available.