diff options
Diffstat (limited to 'src/ratelimiter.rs')
-rw-r--r-- | src/ratelimiter.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ratelimiter.rs b/src/ratelimiter.rs index ee916fc..bdc5c7c 100644 --- a/src/ratelimiter.rs +++ b/src/ratelimiter.rs @@ -24,7 +24,7 @@ struct Entry { pub tokens : u64, } -struct RateLimiter { +pub struct RateLimiter { table : HashMap<IpAddr, Entry>, rx : mpsc::Receiver<()>, } |