1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-08-31 03:20:20 +02:00

fix: remove dbg

This commit is contained in:
GreeFine
2023-11-13 12:58:43 +01:00
parent 453d609e6b
commit 0a70071c02

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)