Dont log errors when rate limit is hit (fixes #2157) (#2161)
authorNutomic <me@nutomic.com>
Fri, 25 Mar 2022 15:41:38 +0000 (16:41 +0100)
committerGitHub <noreply@github.com>
Fri, 25 Mar 2022 15:41:38 +0000 (16:41 +0100)
commita5ff629b2492ff21ca24c9de79e41ad341e204db
treecf10f672666fd1bb02c1f032fe7aca240ce8db42
parentc681bb79b1b5a5a0cb46f07af9ae350d4f0f0bdf
Dont log errors when rate limit is hit (fixes #2157) (#2161)

* Dont log errors when rate limit is hit (fixes #2157)

* Clone service rather than http request

* some cleanup/refactoring

Co-authored-by: Aode (Lion) <asonix@asonix.dog>
crates/utils/src/rate_limit/mod.rs
crates/utils/src/rate_limit/rate_limiter.rs
crates/websocket/src/chat_server.rs