Skip to main content

ask_to_sync_each

Function ask_to_sync_each 

Source
pub fn ask_to_sync_each(
    records: &Records,
    replicas: &[Option<EntityId>],
    now: &dyn Fn() -> u64,
    wait: Duration,
) -> Result<Option<u64>, NodeError>
Expand description

Asks as ask_to_sync does, for a sync with each of several replicas, as when a file is fetched from the devices that hold it, and waits until the holder answered them all.

ยงErrors

Returns an error if the records cannot be read or written.