diff --git a/src/runtime2/scheduler.rs b/src/runtime2/scheduler.rs index a06f30aa2175ec773f37e8da56cd7fe2094a4017..da3e802b0e86c33d99ff65caf1f22ac56a3cd263 100644 --- a/src/runtime2/scheduler.rs +++ b/src/runtime2/scheduler.rs @@ -356,7 +356,7 @@ impl Scheduler { } fn try_go_to_sleep(&self, connector_key: ConnectorKey, connector: &mut ScheduledConnector) { - debug_assert_eq!(connector_key.index, connector.ctx.id.0); + debug_assert_eq!(connector_key.index, connector.ctx.id.index); debug_assert_eq!(connector.public.sleeping.load(Ordering::Acquire), false); // This is the running connector, and only the running connector may @@ -384,7 +384,7 @@ impl Scheduler { } fn debug_conn(&self, conn: ConnectorId, message: &str) { - println!("DEBUG [thrd:{:02} conn:{:02}]: {}", self.scheduler_id, conn.0, message); + println!("DEBUG [thrd:{:02} conn:{:02}]: {}", self.scheduler_id, conn.index, message); } } @@ -462,7 +462,7 @@ impl ComponentCtx { /// for waiting until it is appropriate to shut down (i.e. being outside /// of a sync region) and returning the `Exit` scheduling code. pub(crate) fn push_error(&mut self, error: EvalError) { - println!("ERROR: Component ({}) encountered a critical error:\n{}", self.id.0, error); + println!("ERROR: Component ({}) encountered a critical error:\n{}", self.id.index, error); } #[inline]