Fixing missing dict entry

This commit is contained in:
Kinesin Data Technologies Incorporated
2022-10-03 16:29:19 -03:00
parent 2dcb2203e5
commit 2e7ca16c0c
+4 -1
View File
@@ -298,7 +298,10 @@ impl Runner {
let task = self.tasks.get(&task_name).unwrap(); let task = self.tasks.get(&task_name).unwrap();
action.state = ActionState::Completed; action.state = ActionState::Completed;
for res in &task.provides { for res in &task.provides {
self.current.get_mut(res).unwrap().insert(action.interval); self.current
.entry(res.clone())
.or_insert(IntervalSet::new())
.insert(action.interval);
} }
self.queue_actions(); self.queue_actions();
} }