We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf00c73 commit 3e74af6Copy full SHA for 3e74af6
src/dfx/src/lib/models/canister.rs
@@ -596,7 +596,8 @@ impl CanisterPool {
596
let mut current_canisters_to_build =
597
HashMap::from_iter(real_canisters_to_build.iter().map(|c| (c.canister_id(), ())));
598
for canister_id in current_canisters_to_build.keys() {
599
- id_set.insert(*canister_id, graph.add_node(*canister_id));
+ 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.
601
}
602
loop {
603
let mut current_canisters_to_build2 = HashMap::new();
0 commit comments