Skip to main content

sealed_step

Function sealed_step 

Source
pub fn sealed_step(
    memory: &Path,
    folder: &Path,
    own: &str,
    login: &Login,
    key: &[u8; 32],
    now: i64,
    frugal: bool,
) -> Pulled
Expand description

Sioul keeping the folder itself (MIRROR): the others’ sealed files, after the steps, on a thread of their own (the window’s worker after its exchange, the phone’s background step beside its mail), never in a step: a dose’s alarm never waits for them, and a step waits a moment at most (the step’s lock is taken only to note a listing and to put in place what came, place_fetched). First blobs/, listed when due (listing_due): this device’s own sealed files gone there go up again at the next push; the others’ its copy fetched that the server no longer lists are let go, but those this device still needs (blobs_looked). Then those waited for (blobs::Wanted), by their names, the smallest first, 64 MiB at most a step (the first whatever its size), as long as the step’s time lasts, each kept only once it opens whole to its content (blobs::check); one not there, cut, or that does not open is asked again after its backoff. On a metered or slow connection (frugal), one of a megabyte or more at most every ten minutes, as the sending paces them. One at a time on this device.