hyperlane-plugin-rate-limit 23.4.1

A 64-way sharded lock-free atomic GCRA and fixed-window rate limiter plugin for the Hyperlane framework with extensible KeyExtractor and RateLimitStore traits and RFC RateLimit headers.
Documentation
1
2
3
4
5
6
7
8
9
10
mod rate_limit;

use super::*;

use std::{
    thread::{JoinHandle, spawn},
    time::Duration,
};

use hyperlane::tokio::{self, time::sleep};