File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -559,19 +559,15 @@ impl CanisterPool {
559
559
#[ context( "Failed to build dependencies graph for canister pool." ) ]
560
560
fn build_dependencies_graph ( & self , _canisters_to_build : Option < Vec < String > > ) -> DfxResult < DiGraph < CanisterId , ( ) > > {
561
561
for canister in & self . canisters { // a little inefficient
562
- // if !current_canisters_to_build.contains_key(&canister.canister_id()) {
563
- // continue;
564
- // }
565
562
let canister_info = & canister. info ;
566
563
// FIXME: Is `unwrap()` in the next operator correct?
567
- // TODO: Ignored return value is a hack
564
+ // TODO: Ignored return value is a hack.
568
565
let _deps: Vec < CanisterId > = canister. builder . get_dependencies ( self , canister_info) ?
569
566
. into_iter ( ) . filter ( |d| * d != canister_info. get_canister_id ( ) . unwrap ( ) ) . collect ( ) ; // TODO: This is a hack.
570
567
}
571
568
572
569
Ok ( self . imports . borrow ( ) . graph . filter_map (
573
570
|_node_index, node_weight| {
574
- // B::from(node_weight)
575
571
match node_weight {
576
572
// TODO: `get_first_canister_with_name` is a hack
577
573
MotokoImport :: Canister ( name) => Some ( self . get_first_canister_with_name ( & name) . unwrap ( ) . canister_id ( ) ) ,
You can’t perform that action at this time.
0 commit comments