Skip to content

Commit f80a1d1

Browse files
committed
Bump
1 parent c070366 commit f80a1d1

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

server/src/http.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,7 @@ async fn rate_limit_middleware(
105105
let path = req
106106
.extensions()
107107
.get::<MatchedPath>()
108-
.map(MatchedPath::as_str)
109-
.unwrap_or("/")
108+
.map_or("/", MatchedPath::as_str)
110109
.to_string();
111110

112111
let rate_limiter = &state.rate_limiter;
@@ -117,10 +116,6 @@ async fn rate_limit_middleware(
117116

118117
let mut exceeded = false;
119118

120-
if env::var("RATE_LIMIT_ENABLED").unwrap_or_else(|_| "false".to_owned()) == "true" {
121-
info!("Rate limit for {} is {}", path, ip);
122-
}
123-
124119
rate_limiter
125120
.states
126121
.entry(key)

0 commit comments

Comments
 (0)