Skip to content

Commit 69af6cd

Browse files
committed
fix(deep_causality): fixed mapping maintained by EffectEthos
Signed-off-by: Marvin Hansen <[email protected]>
1 parent 3574cf9 commit 69af6cd

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

deep_causality/src/types/telos_types/effect_ethos/resolve_conflicts.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,8 @@ where
5353
let mut inferred_beliefs: HashMap<TeloidID, Teloid<D, S, T, ST, SYM, VS, VT>> =
5454
HashMap::new();
5555

56-
let mut id_to_index: HashMap<TeloidID, usize> = HashMap::new();
57-
for (i, &id) in self.teloid_graph.graph.get_all_nodes().iter().enumerate() {
58-
id_to_index.insert(*id, i);
59-
}
56+
// Use the authoritative mapping maintained by EffectEthos
57+
let id_to_index = &self.id_to_index_map;
6058

6159
// Initialize the queue with the indices of the active teloids.
6260
for &teloid in active_teloids {

0 commit comments

Comments
 (0)