Skip to content

Commit

Permalink
fix sleep after publish (call sleep) for #224; (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
greenhat authored Mar 22, 2021
1 parent dd59ada commit 383c38f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ fn release_packages<'m>(
cargo::wait_for_publish(crate_name, &base.version_string, timeout, dry_run)?;
// HACK: Even once the index is updated, there seems to be another step before the publish is fully ready.
// We don't have a way yet to check for that, so waiting for now in hopes everything is ready
std::time::Duration::from_secs(5);
std::thread::sleep(std::time::Duration::from_secs(5));
} else {
log::debug!("Not waiting for publish because the registry is not crates.io and doesn't get updated automatically");
}
Expand Down

0 comments on commit 383c38f

Please sign in to comment.