Skip to main content

sync_peers

Function sync_peers 

Source
pub(super) async fn sync_peers<F, Fut>(
    store: Arc<Store>,
    peers: &[Peer],
    seen: &mut HashMap<String, Synced>,
    call: &F,
    now: Instant,
)
where F: Fn(String, &'static str, Value) -> Fut, Fut: Future<Output = RemoteOpResult>,
Expand description

Sync every peer that is due. Separate from sync_once so a test can give it a fake machine.