api: throttle streaming admin read polls

This commit is contained in:
a.tolmachev
2026-05-02 09:44:28 +00:00
parent c597557a5e
commit 4839cae319
5 changed files with 285 additions and 4 deletions
+4 -1
View File
@@ -989,7 +989,10 @@ mod tests {
.await
.unwrap();
assert_eq!(second_response.status(), reqwest::StatusCode::TOO_MANY_REQUESTS);
assert_eq!(
second_response.status(),
reqwest::StatusCode::TOO_MANY_REQUESTS
);
assert!(second_response.headers().get(header::RETRY_AFTER).is_some());
}