File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -200,8 +200,9 @@ impl CanisterBuilder for MotokoBuilder {
200
200
if let Ok ( wasm_file_metadata) = metadata ( output_wasm_path) {
201
201
let wasm_file_time = wasm_file_metadata. modified ( ) ?;
202
202
let mut imports = pool. imports . borrow_mut ( ) ;
203
- let start = if let Some ( node_index) = imports. nodes . get ( & MotokoImport :: Relative ( motoko_info. get_main_path ( ) . to_path_buf ( ) ) ) {
204
- * node_index
203
+ // TODO: ineffective to_string()
204
+ let start = if let Some ( node_index) = imports. nodes . get ( & MotokoImport :: Canister ( canister_info. get_name ( ) . to_string ( ) ) ) {
205
+ * node_index
205
206
} else {
206
207
let node = MotokoImport :: Relative ( motoko_info. get_main_path ( ) . to_path_buf ( ) ) ;
207
208
let node_index = imports. graph . add_node ( node. clone ( ) ) ;
You can’t perform that action at this time.
0 commit comments