Skip to content

Commit ced312b

Browse files
committed
remove debug code
1 parent bbef580 commit ced312b

File tree

1 file changed

+2
-24
lines changed

1 file changed

+2
-24
lines changed

crates/next-api/src/routes_hashes_manifest.rs

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -67,37 +67,15 @@ pub async fn endpoint_hashes(
6767

6868
let module_graph = module_graph.read_graphs().await?;
6969

70-
if let Err(e) = module_graph.traverse_nodes_from_entries_dfs(
70+
module_graph.traverse_nodes_from_entries_dfs(
7171
modules,
7272
&mut all_modules,
7373
|module, all_modules| {
7474
all_modules.insert(*module);
7575
Ok(GraphTraversalAction::Continue)
7676
},
7777
|_, _| Ok(()),
78-
) {
79-
let modules = entries
80-
.await?
81-
.into_iter()
82-
.chain(additional_entries.await?.into_iter())
83-
.flat_map(|e| e.entries())
84-
.map(async |m| Ok((m, m.ident().to_string().await?)))
85-
.try_join()
86-
.await?;
87-
let entries = module_graph
88-
.entries()
89-
.map(async |e| {
90-
let modules = e
91-
.entries()
92-
.map(async |m| Ok((m, m.ident().to_string().await?)))
93-
.try_join()
94-
.await?;
95-
Ok((e, modules))
96-
})
97-
.try_join()
98-
.await?;
99-
println!("{e:?} {endpoint:?} module_graph entries = {entries:#?}\nmodules = {modules:#?}")
100-
}
78+
)?;
10179

10280
let sources = all_modules
10381
.iter()

0 commit comments

Comments
 (0)