From d2b68191fc1ad636804b6917667fdc4d30d49ae5 Mon Sep 17 00:00:00 2001 From: John DiSanti Date: Tue, 17 Jan 2023 10:49:46 -0800 Subject: [PATCH] Slow down crate publish more (#2214) --- tools/publisher/src/publish.rs | 2 +- tools/publisher/src/subcommand/publish.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/publisher/src/publish.rs b/tools/publisher/src/publish.rs index 78618db81..7d95a838e 100644 --- a/tools/publisher/src/publish.rs +++ b/tools/publisher/src/publish.rs @@ -38,7 +38,7 @@ pub async fn publish(handle: &PackageHandle, crate_path: &Path) -> anyhow::Resul run_with_retry( &format!("Publishing `{}`", handle), 5, - Duration::from_secs(30), + Duration::from_secs(60), || async { cargo::Publish::new(handle.clone(), &crate_path) .spawn() diff --git a/tools/publisher/src/subcommand/publish.rs b/tools/publisher/src/subcommand/publish.rs index b342644e4..5d76e5ff0 100644 --- a/tools/publisher/src/subcommand/publish.rs +++ b/tools/publisher/src/subcommand/publish.rs @@ -60,7 +60,7 @@ pub async fn subcommand_publish( publish(&package.handle, &package.crate_path).await?; // Keep things slow to avoid getting throttled by crates.io - tokio::time::sleep(Duration::from_secs(2)).await; + tokio::time::sleep(Duration::from_secs(5)).await; // Sometimes it takes a little bit of time for the new package version // to become available after publish. If we proceed too quickly, then -- GitLab