Skip to content

Commit 3e74af6

Browse files
committed
attempted bug fix
1 parent bf00c73 commit 3e74af6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/dfx/src/lib/models/canister.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,8 @@ impl CanisterPool {
596596
let mut current_canisters_to_build =
597597
HashMap::from_iter(real_canisters_to_build.iter().map(|c| (c.canister_id(), ())));
598598
for canister_id in current_canisters_to_build.keys() {
599-
id_set.insert(*canister_id, graph.add_node(*canister_id));
599+
id_set.entry(*canister_id).or_insert_with(|| graph.add_node(*canister_id));
600+
// id_set.insert(*canister_id, graph.add_node(*canister_id)); // TODO: Use this, instead.
600601
}
601602
loop {
602603
let mut current_canisters_to_build2 = HashMap::new();

0 commit comments

Comments
 (0)