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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user