Skip to main content

spawn_catchup

Function spawn_catchup 

Source
pub fn spawn_catchup(
    _: CatchupConfig,
    caught_up_receiver: Receiver,
    bootstrapped: Receiver<(u64, u64)>,
)
Expand description

Starts catching up and promoting a read-only deployment.

An administrative skip is accepted right away and promotes without waiting for bootstrap. Otherwise, catch-up checks and the catch-up timeout start once bootstrapped yields the ID baseline, which must come from the savepoint used to bootstrap the adapter. The task exits if bootstrapped is dropped.