Skip to main content

woken

Function woken 

Source
fn woken(
    schedule: BTreeMap<(OwnedUserId, SmallString<[u8; 48]>), Entry>,
    key: (OwnedUserId, SmallString<[u8; 48]>),
    entry: Entry,
) -> BTreeMap<(OwnedUserId, SmallString<[u8; 48]>), Entry>
Expand description

Adds a woken pusher, or brings its entry forward to the sooner due time.

An entry counting failures keeps its backoff. The wake’s frontier replaces the entry’s; it already folds in any kept one.