Unverified Commit d2b68191 authored by John DiSanti's avatar John DiSanti Committed by GitHub
Browse files

Slow down crate publish more (#2214)

parent d040f76f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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()
+1 −1
Original line number Diff line number Diff line
@@ -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