Merge pull request #2138 from LemmyNet/rate_limit_algorithm_desc

Show rate limit algorithm. Fixes #2136
This commit is contained in:
Nutomic 2022-03-23 14:48:09 +00:00 committed by GitHub
commit 0c63dbafb6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,6 +45,7 @@ impl RateLimiter {
}
}
/// Rate limiting Algorithm described here: https://stackoverflow.com/a/668327/1655478
#[allow(clippy::float_cmp)]
pub(super) fn check_rate_limit_full(
&mut self,