diff --git a/src/runtime2/mod.rs b/src/runtime2/mod.rs index 3cf1ba4de30ac97d92be9c0353934cb417c6972e..c32927832211a8e771d9de395585e7bdb9589d34 100644 --- a/src/runtime2/mod.rs +++ b/src/runtime2/mod.rs @@ -87,7 +87,7 @@ impl Connector for ConnectorVariant { pub(crate) struct ScheduledConnector { pub connector: ConnectorVariant, // access by connector - pub ctx_fancy: ComponentCtx, + pub ctx: ComponentCtx, pub public: ConnectorPublic, // accessible by all schedulers and connectors pub router: ControlMessageHandler, pub shutting_down: bool, @@ -402,7 +402,7 @@ impl ConnectorStore { fn create(&mut self, connector: ConnectorVariant, initially_sleeping: bool) -> ConnectorKey { let mut connector = ScheduledConnector { connector, - ctx_fancy: ComponentCtx::new_empty(), + ctx: ComponentCtx::new_empty(), public: ConnectorPublic::new(initially_sleeping), router: ControlMessageHandler::new(), shutting_down: false, @@ -415,7 +415,7 @@ impl ConnectorStore { // No free entries, allocate new entry index = self.connectors.len(); key = ConnectorKey{ index: index as u32 }; - connector.ctx_fancy.id = key.downcast(); + connector.ctx.id = key.downcast(); let connector = Box::into_raw(Box::new(connector)); self.connectors.push(connector); @@ -423,7 +423,7 @@ impl ConnectorStore { // Free spot available index = self.free.pop().unwrap(); key = ConnectorKey{ index: index as u32 }; - connector.ctx_fancy.id = key.downcast(); + connector.ctx.id = key.downcast(); unsafe { let target = self.connectors.get_mut(index);