Skip to content

Commit

Permalink
fix(sync): fix return early in synchronization (#1264)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eason Gao authored Jul 7, 2023
1 parent fdc20cb commit 0655b3d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/consensus/src/synchronization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ impl<Adapter: SynchronizationAdapter> Synchronization for OverlordSynchronizatio
sync_status.last_number,
e
);

self.update_status(ctx, sync_status_agent).await?;
SYNC_STATUS.write().finish();

return Err(e);
}

Expand Down

0 comments on commit 0655b3d

Please sign in to comment.