Skip to main content

sync_loop

Function sync_loop 

Source
pub async fn sync_loop(
    agent: Agent,
    bookie: Bookie,
    transport: Transport,
    tripwire: Tripwire,
)
Expand description

Periodically initiate a sync with many other nodes. Before we do though, apply buffered/ partial changesets to avoid having to sync things we should already know about.

Actual sync logic is handled by handle_sync.