Skip to content

Commit

Permalink
fix: use correct release type in upgrade process
Browse files Browse the repository at this point in the history
The faucet and daemon upgrades did not work correctly because the release type was hard coded to
`ReleaseType::Safenode` and was not changed when this code was refactored.
  • Loading branch information
jacderida authored and RolandSherwin committed Apr 3, 2024
1 parent c0bd5f8 commit c58ed05
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sn_node_manager/src/cmd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,8 @@ pub async fn download_and_get_upgrade_bin_path(
download_and_extract_release(release_type, Some(url), None, &*release_repo).await?;
Ok((upgrade_bin_path, Version::parse(&version)?))
} else {
println!("Retrieving latest version of safenode...");
let latest_version = release_repo
.get_latest_version(&ReleaseType::Safenode)
.await?;
println!("Retrieving latest version of {}...", release_type);
let latest_version = release_repo.get_latest_version(&release_type).await?;
println!("Latest version is {latest_version}");
let (upgrade_bin_path, _) = download_and_extract_release(
ReleaseType::Safenode,
Expand Down

0 comments on commit c58ed05

Please sign in to comment.