Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptoAtwill committed Nov 2, 2023
1 parent afbc55d commit b07a060
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions ipc/provider/src/checkpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,16 @@ impl<T: BottomUpCheckpointRelayer + Send + Sync + 'static> BottomUpCheckpointMan
let bundle = self.child_handler.checkpoint_bundle_at(height).await?;
log::debug!("bottom up bundle: {bundle:?}");

let epoch = self.parent_handler
let epoch = self
.parent_handler
.submit_checkpoint(submitter, bundle)
.await
.map_err(|e| anyhow!("cannot submit bottom up checkpoint due to: {e:}"))?;
log::info!("submitted bottom up checkpoint({}) in parent at height {}", height, epoch);
log::info!(
"submitted bottom up checkpoint({}) in parent at height {}",
height,
epoch
);

Ok(())
}
Expand Down Expand Up @@ -196,12 +201,17 @@ impl<T: BottomUpCheckpointRelayer + Send + Sync + 'static> BottomUpCheckpointMan
.await?;
log::debug!("bottom up bundle: {bundle:?}");

let epoch = self.parent_handler
let epoch = self
.parent_handler
.submit_checkpoint(submitter, bundle)
.await
.map_err(|e| anyhow!("cannot submit bottom up checkpoint due to: {e:}"))?;

log::info!("submitted bottom up checkpoint({}) in parent at height {}", event.height, epoch);
log::info!(
"submitted bottom up checkpoint({}) in parent at height {}",
event.height,
epoch
);
}
}

Expand Down

0 comments on commit b07a060

Please sign in to comment.