Skip to content

Commit e77c0cd

Browse files
committed
make any_content_changed_of_module deterministic
1 parent 4641fb1 commit e77c0cd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

turbopack/crates/turbopack-core/src/changed.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use anyhow::Result;
22
use turbo_tasks::{
33
Completion, Completions, ResolvedVc, TryJoinIterExt, Vc,
4-
graph::{GraphTraversal, NonDeterministic},
4+
graph::{AdjacencyMap, GraphTraversal, NonDeterministic},
55
};
66

77
use crate::{
@@ -32,13 +32,13 @@ pub async fn get_referenced_modules(
3232
pub async fn any_content_changed_of_module(
3333
root: ResolvedVc<Box<dyn Module>>,
3434
) -> Result<Vc<Completion>> {
35-
let completions = NonDeterministic::new()
35+
let completions = AdjacencyMap::new()
3636
.skip_duplicates()
3737
.visit([root], get_referenced_modules)
3838
.await
3939
.completed()?
4040
.into_inner()
41-
.into_iter()
41+
.into_postorder_topological()
4242
.map(|m| content_changed(*ResolvedVc::upcast(m)))
4343
.map(|v| v.to_resolved())
4444
.try_join()

0 commit comments

Comments
 (0)