Skip to content

Commit 2ec5aa4

Browse files
committed
chore(chain)!: use debug_assert! on apply_update
As mentioned in issue #1689 the `debug_assert!` is being used on other `LocalChain` methods, such as: `from_changeset`, and `apply_changeset` but it was missing on `apply_update`.
1 parent 3bc45b5 commit 2ec5aa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/chain/src/local_chain.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ impl LocalChain {
174174
pub fn apply_update(&mut self, update: CheckPoint) -> Result<ChangeSet, CannotConnectError> {
175175
let (new_tip, changeset) = merge_chains(self.tip.clone(), update)?;
176176
self.tip = new_tip;
177-
self._check_changeset_is_applied(&changeset);
177+
debug_assert!(self._check_changeset_is_applied(&changeset));
178178
Ok(changeset)
179179
}
180180

0 commit comments

Comments
 (0)