Skip to main content

send_urgent

Function send_urgent 

Source
pub fn send_urgent(
    memory: &Path,
    folder: &Path,
    own: &str,
    login: &Login,
    now: i64,
    media: &BTreeMap<String, u64>,
) -> Pulled
Expand description

This device’s texts and replies to send (texts/send/<id>.jsonl, place_texts; phone-messages/ask/<id>.jsonl, place_asks), on a lane of their own: small files, sent first and alone, never waiting behind a large one going up on a slow line; Sioul keeping the folder itself too (MIRROR). A multimedia message’s media go first on it (media: their sealed files’ names in blobs/, and the size each was sealed at), so that the phone finds them there by the time it reads the request; each asked of the server by its own name, never the whole of blobs/ listed.