diff --git a/tools/publisher/src/publish.rs b/tools/publisher/src/publish.rs index 78618db81d0267968d2b8fa663ad330c77d37653..7d95a838eba3eccf628b24d8ccf129556cfd6f08 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 b342644e4b018680c08b99c46f9e72b543b63458..5d76e5ff01745be2fcd3f4fee779d5eee87d1090 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