Obey crates.io crawler policy: Only make one request per sec (#908)

Fixed https://github.com/taiki-e/install-action/issues/89

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2023-03-14 17:11:22 +11:00 committed by GitHub
parent f37796a55f
commit d118fa8fdb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 47 additions and 1 deletions

View file

@ -117,6 +117,7 @@ pub fn install_crates(
client,
gh_api_client,
jobserver_client,
crates_io_rate_limit: Default::default(),
});
// Destruct args before any async function to reduce size of the future