From af30cfe2e1f038de153ae76abf189407334c4e3a Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Wed, 12 Jun 2024 20:00:46 +1000 Subject: [PATCH] Update client-side rate limit to 1 request per 300ms Signed-off-by: Jiahao XU --- crates/binstalk-git-repo-api/src/gh_api_client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/binstalk-git-repo-api/src/gh_api_client.rs b/crates/binstalk-git-repo-api/src/gh_api_client.rs index e6342b78..3ed8a81d 100644 --- a/crates/binstalk-git-repo-api/src/gh_api_client.rs +++ b/crates/binstalk-git-repo-api/src/gh_api_client.rs @@ -498,7 +498,7 @@ mod test { remote::Client::new( concat!(env!("CARGO_PKG_NAME"), "/", env!("CARGO_PKG_VERSION")), None, - NonZeroU16::new(200).unwrap(), + NonZeroU16::new(300).unwrap(), 1.try_into().unwrap(), [], )