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

Commit

Permalink
chore: update SynchronizerService to remove unwrap (#403)
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Paitrault <[email protected]>
  • Loading branch information
Freyskeyd authored Dec 13, 2023
1 parent 28a553b commit b424aa9
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,9 @@ impl CheckpointSynchronizer {
let mut client: SynchronizerServiceClient<_> = self
.network
.new_grpc_client::<SynchronizerServiceClient<_>, SynchronizerServiceServer<SynchronizerService>>(peer)
.await
.unwrap();
.await?;

let response: CheckpointResponse = client.fetch_checkpoint(req).await.unwrap().into_inner();
let response: CheckpointResponse = client.fetch_checkpoint(req).await?.into_inner();

let diff = response
.checkpoint_diff
Expand Down

0 comments on commit b424aa9

Please sign in to comment.