@@ -858,15 +858,15 @@ async fn sync_bucket(
858858 for epoch in steps_in_range ( & range, 30_000 , 800 ) {
859859 if !bucket_has_lite_snapshot ( & info. network , genesis_timestamp, epoch) . await ? {
860860 println ! ( " {}: Exporting lite snapshot" , epoch, ) ;
861- let output_path = export_lite_snapshot (
862- store. clone ( ) ,
863- heaviest_tipset. clone ( ) ,
864- & info. network ,
865- genesis_timestamp,
866- epoch,
867- )
868- . await ?;
869861 if !dry_run {
862+ let output_path = export_lite_snapshot (
863+ store. clone ( ) ,
864+ heaviest_tipset. clone ( ) ,
865+ & info. network ,
866+ genesis_timestamp,
867+ epoch,
868+ )
869+ . await ?;
870870 upload_to_forest_bucket ( output_path, & info. network , "lite" ) ?;
871871 } else {
872872 println ! ( " {}: Would upload lite snapshot to S3" , epoch) ;
@@ -877,15 +877,15 @@ async fn sync_bucket(
877877 for epoch in steps_in_range ( & range, 3_000 , 3_800 ) {
878878 if !bucket_has_diff_snapshot ( & info. network , genesis_timestamp, epoch) . await ? {
879879 println ! ( " {}: Exporting diff snapshot" , epoch, ) ;
880- let output_path = export_diff_snapshot (
881- store. clone ( ) ,
882- heaviest_tipset. clone ( ) ,
883- & info. network ,
884- genesis_timestamp,
885- epoch,
886- )
887- . await ?;
888880 if !dry_run {
881+ let output_path = export_diff_snapshot (
882+ store. clone ( ) ,
883+ heaviest_tipset. clone ( ) ,
884+ & info. network ,
885+ genesis_timestamp,
886+ epoch,
887+ )
888+ . await ?;
889889 upload_to_forest_bucket ( output_path, & info. network , "diff" ) ?;
890890 } else {
891891 println ! ( " {}: Would upload diff snapshot to S3" , epoch) ;
0 commit comments