diff --git a/src/runtime/consensus.rs b/src/runtime/consensus.rs index 1147f447ef8a25ef9a8b8e0754c36b4527efdfc0..616fc07fbfa1db8177754241900e984f7aa1f667 100644 --- a/src/runtime/consensus.rs +++ b/src/runtime/consensus.rs @@ -328,13 +328,13 @@ impl Consensus { let branch = &mut self.branch_annotations[branch_id.index as usize]; let port_info = ctx.get_port_by_id(source_port_id).unwrap(); - if cfg!(debug_assertions) { + dbg_code!({ // Check for consistent mapping let port = branch.channel_mapping.iter() .find(|v| v.channel_id == port_info.channel_id) .unwrap(); debug_assert!(port.expected_firing == None || port.expected_firing == Some(true)); - } + }); // Check for ports that are being sent debug_assert!(self.workspace_ports.is_empty());