Skip to main content

to_let_go

Function to_let_go 

Source
pub fn to_let_go(
    pooled: Vec<(Duration, RelayUrl)>,
    cap: usize,
    keep: Duration,
    busy: Duration,
) -> Vec<RelayUrl>
Expand description

Which of the relays in the pool of other people’s to take out of it. pooled is each with how long it has gone unused. Those unused for keep or longer go; and if more than cap are left, the ones used longest ago go too, but none used within busy, which may be in the middle of answering.