Skip to main content

check_bucket

Function check_bucket 

Source
fn check_bucket(
    table: &Mutex<HashMap<IpAddr, (Instant, f64)>>,
    client: IpAddr,
    rate: f64,
    burst: f64,
) -> Result