mirror of
https://github.com/4cuck/teapawt.git
synced 2026-10-27 19:04:35 +00:00
api: keep a recorded rate limit over the code 88 fallback
This commit is contained in:
1 parent
3d9307a5b5
commit
76ee933467
1 file changed
+1
-1
+1
-1
@@ -600,7 +600,7 @@ impl ApiClient {
|
||||
self.sessions.mark_rejected(session.id).await;
|
||||
return Err(Error::SessionRejected(msg.clone()));
|
||||
}
|
||||
if matches!(api_check, Err(Error::RateLimited)) {
|
||||
if !limit_recorded && matches!(api_check, Err(Error::RateLimited)) {
|
||||
self
|
||||
.sessions
|
||||
.mark_endpoint_limited(session.id, endpoint)
|
||||
|
||||
Reference in new issue
Block a user