Skip to content

Commit

Permalink
Graph refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkirsz authored and sokra committed May 1, 2023
1 parent 7e0a6f8 commit 65e527e
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions packages/next-swc/crates/next-core/src/manifest.rs
Expand Up @@ -67,16 +67,14 @@ impl DevManifestContentSourceVc {
Ok(content_source.get_children().await?.clone_value())
}

let routes = GraphTraversal::<NonDeterministic<_>>::visit(
this.page_roots.iter().copied(),
get_content_source_children,
)
.await
.completed()?
.into_iter()
.map(content_source_to_pathname)
.try_join()
.await?;
let routes = NonDeterministic::new()
.visit(this.page_roots.iter().copied(), get_content_source_children)
.await
.completed()?
.into_iter()
.map(content_source_to_pathname)
.try_join()
.await?;
let mut routes = routes
.into_iter()
.flatten()
Expand Down

0 comments on commit 65e527e

Please sign in to comment.