Skip to content

Commit 0271544

Browse files
author
lemmih
committed
more comments
1 parent 21b98f3 commit 0271544

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/tool/subcommands/archive_cmd.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,7 @@ async fn bucket_has_diff_snapshot(
694694
const FOREST_ARCHIVE_S3_ENDPOINT: &str =
695695
"https://2238a825c5aca59233eab1f221f7aefb.r2.cloudflarestorage.com";
696696

697+
/// Check if the AWS CLI is installed and correctly configured.
697698
fn check_aws_config(endpoint: &str) -> anyhow::Result<()> {
698699
let status = std::process::Command::new("aws")
699700
.arg("help")
@@ -723,6 +724,7 @@ fn check_aws_config(endpoint: &str) -> anyhow::Result<()> {
723724
Ok(())
724725
}
725726

727+
/// Use the AWS CLI to upload a snapshot file to the S3 bucket.
726728
fn upload_to_forest_bucket(path: PathBuf, network: &str, tag: &str) -> anyhow::Result<()> {
727729
let status = std::process::Command::new("aws")
728730
.args([
@@ -747,6 +749,7 @@ fn upload_to_forest_bucket(path: PathBuf, network: &str, tag: &str) -> anyhow::R
747749
Ok(())
748750
}
749751

752+
/// Given a block store, export a lite snapshot for a given epoch.
750753
async fn export_lite_snapshot(
751754
store: Arc<impl Blockstore + Send + Sync + 'static>,
752755
root: Tipset,
@@ -779,6 +782,7 @@ async fn export_lite_snapshot(
779782
Ok(output_path)
780783
}
781784

785+
/// Given a block store, export a diff snapshot for a given epoch.
782786
async fn export_diff_snapshot(
783787
store: Arc<impl Blockstore + Send + Sync + 'static>,
784788
root: Tipset,

0 commit comments

Comments
 (0)