1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-02-17 08:33:30 +01:00

fix: remove dbg

This commit is contained in:
GreeFine 2023-11-13 12:58:43 +01:00
parent 453d609e6b
commit 0a70071c02
No known key found for this signature in database
GPG Key ID: 26E0E4E1863871B8

View File

@ -140,10 +140,10 @@ impl Limiter {
/// Consumes one rate limit unit, returning the status.
pub async fn count(&self, key: impl Into<String>) -> Result<Status, Error> {
let (count, reset) = dbg!(self.track(key).await?);
let (count, reset) = self.track(key).await?;
let status = Status::new(count, self.limit, reset);
if dbg!(count) > dbg!(self.limit) {
if count > self.limit {
Err(Error::LimitExceeded(status))
} else {
Ok(status)