Skip to content

Commit

Permalink
Fix formatting warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiimk committed Aug 21, 2024
1 parent 6fddb3f commit 09e277d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/infra/core/src/repos/metadata_chain_validators.rs
Original file line number Diff line number Diff line change
Expand Up @@ -787,10 +787,11 @@ impl<'a> MetadataChainVisitor for ValidateExecuteTransformVisitor<'a> {
}

// Validate event advances some state
// Note that there can be no data, checkpoint, or watermark in cases when all
// inputs only had source state updates
if e.new_data.is_none()
&& e.new_checkpoint.as_ref().map(|v| &v.physical_hash) == e.prev_checkpoint.as_ref()
&& e.new_watermark.as_ref() == prev_watermark
// All inputs had new blocks that only update source state?
&& e.query_inputs.iter().all(|i| i.new_block_hash.is_none())
{
return Err(AppendValidationError::no_op_event(
Expand Down

0 comments on commit 09e277d

Please sign in to comment.