Skip to content

Commit

Permalink
l18n key
Browse files Browse the repository at this point in the history
  • Loading branch information
Nutomic committed Nov 3, 2022
1 parent dd6c222 commit 16ffe43
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crates/utils/src/rate_limit/mod.rs
@@ -1,7 +1,5 @@
use crate::{error::LemmyError, utils::get_ip, IpAddr};
use actix_web::{
dev::{Service, ServiceRequest, ServiceResponse, Transform},
};
use actix_web::dev::{Service, ServiceRequest, ServiceResponse, Transform};
use futures::future::{ok, Ready};
use rate_limiter::{RateLimitType, RateLimiter};
use serde::{Deserialize, Serialize};
Expand Down Expand Up @@ -177,7 +175,7 @@ where
} else {
let (http_req, _) = req.into_parts();
Ok(ServiceResponse::from_err(
LemmyError::from_message("error_rate_limited"),
LemmyError::from_message("rate_limit_error"),
http_req,
))
}
Expand Down

0 comments on commit 16ffe43

Please sign in to comment.