From c58ed056661ccdcd634ba9ce79717f58879ada62 Mon Sep 17 00:00:00 2001 From: Chris O'Neil Date: Tue, 2 Apr 2024 22:36:33 +0100 Subject: [PATCH] fix: use correct release type in upgrade process 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. --- sn_node_manager/src/cmd/mod.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sn_node_manager/src/cmd/mod.rs b/sn_node_manager/src/cmd/mod.rs index 27f5436c6e..02a3e5a93f 100644 --- a/sn_node_manager/src/cmd/mod.rs +++ b/sn_node_manager/src/cmd/mod.rs @@ -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,