api: keep a recorded rate limit over the code 88 fallback

This commit is contained in:
4cuck committed 2026-08-29 03:12:57 -04:00
1 parent 3d9307a5b5
commit 76ee933467
1 file changed
+1 -1
+1 -1
View File
@@ -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)