Skip to content

Commit 40003b0

Browse files
committed
10x the channel sizes
1 parent 1942baa commit 40003b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/syn2mas/src/migration.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ async fn migrate_users(
236236
) -> Result<(MigrationState, MasWriter), Error> {
237237
let start = Instant::now();
238238

239-
let (tx, mut rx) = tokio::sync::mpsc::channel(1024 * 1024);
239+
let (tx, mut rx) = tokio::sync::mpsc::channel(10 * 1024 * 1024);
240240

241241
let mut rng = rand_chacha::ChaCha8Rng::from_rng(rng).expect("failed to seed rng");
242242
let task = tokio::spawn(
@@ -496,7 +496,7 @@ async fn migrate_devices(
496496
) -> Result<(MigrationState, MasWriter), Error> {
497497
let start = Instant::now();
498498

499-
let (tx, mut rx) = tokio::sync::mpsc::channel(1024 * 1024);
499+
let (tx, mut rx) = tokio::sync::mpsc::channel(10 * 1024 * 1024);
500500

501501
let mut rng = rand_chacha::ChaChaRng::from_rng(rng).expect("failed to seed rng");
502502
let task = tokio::spawn(
@@ -619,7 +619,7 @@ async fn migrate_unrefreshable_access_tokens(
619619
) -> Result<(MigrationState, MasWriter), Error> {
620620
let start = Instant::now();
621621

622-
let (tx, mut rx) = tokio::sync::mpsc::channel(1024 * 1024);
622+
let (tx, mut rx) = tokio::sync::mpsc::channel(10 * 1024 * 1024);
623623

624624
let now = clock.now();
625625
let mut rng = rand_chacha::ChaChaRng::from_rng(rng).expect("failed to seed rng");

0 commit comments

Comments
 (0)