File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
utils/github_release_retriever Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const GITHUB_ORGANIZATION: &str = "IntersectMBO";
19
19
const GITHUB_REPOSITORY : & str = "cardano-node" ;
20
20
21
21
const LATEST_DISTRIBUTION_TAG : & str = "latest" ;
22
- const PRERELEASE_DISTRIBUTION_TAG : & str = "prerelease " ;
22
+ const PRERELEASE_DISTRIBUTION_TAG : & str = "pre-release " ;
23
23
24
24
const WORK_DIR : & str = "tmp" ;
25
25
const CARDANO_DISTRIBUTION_DIR : & str = "cardano-node-distribution" ;
@@ -76,7 +76,7 @@ pub struct SnapshotConverterCommand {
76
76
77
77
/// Cardano node version of the Mithril signed snapshot.
78
78
///
79
- /// `latest` and `prerelease ` are also supported to download the latest or prerelease distribution.
79
+ /// `latest` and `pre-release ` are also supported to download the latest or pre-release distribution.
80
80
#[ clap( long) ]
81
81
cardano_node_version : String ,
82
82
@@ -189,7 +189,7 @@ impl SnapshotConverterCommand {
189
189
PRERELEASE_DISTRIBUTION_TAG => github_api_client
190
190
. get_prerelease ( GITHUB_ORGANIZATION , GITHUB_REPOSITORY )
191
191
. await
192
- . with_context ( || "Failed to get prerelease " ) ?,
192
+ . with_context ( || "Failed to get pre-release " ) ?,
193
193
_ => github_api_client
194
194
. get_release_by_tag ( GITHUB_ORGANIZATION , GITHUB_REPOSITORY , tag)
195
195
. await
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ pub trait GitHubReleaseRetriever {
19
19
/// Retrieves the latest release.
20
20
async fn get_latest_release ( & self , owner : & str , repo : & str ) -> MithrilResult < GitHubRelease > ;
21
21
22
- /// Retrieves the prerelease .
22
+ /// Retrieves the pre-release .
23
23
async fn get_prerelease ( & self , owner : & str , repo : & str ) -> MithrilResult < GitHubRelease > ;
24
24
25
25
/// Retrieves all available releases.
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ impl GitHubReleaseRetriever for ReqwestGitHubApiClient {
91
91
let prerelease = releases
92
92
. into_iter ( )
93
93
. find ( |release| release. prerelease )
94
- . ok_or_else ( || anyhow ! ( "No prerelease found" ) ) ?;
94
+ . ok_or_else ( || anyhow ! ( "No pre-release found" ) ) ?;
95
95
96
96
Ok ( prerelease)
97
97
}
You can’t perform that action at this time.
0 commit comments