Skip to content

Commit 1633ce1

Browse files
committed
fixup
1 parent 62b3c27 commit 1633ce1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

turbopack/crates/turbo-tasks-backend/src/utils/dash_map_drop_contents.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ use std::{
44
};
55

66
use dashmap::DashMap;
7-
use rayon::prelude::*;
7+
use turbo_tasks::parallel;
88

99
pub fn drop_contents<K: Hash + Eq + Send + Sync, V: Send + Sync, H: BuildHasher + Clone>(
1010
map: &DashMap<K, V, H>,
1111
) {
1212
let shards = map.shards();
13-
shards.par_iter().for_each(|shard| {
13+
parallel::for_each(shards, |shard| {
1414
let table = take(&mut *shard.write());
1515
drop(table);
1616
});

0 commit comments

Comments
 (0)