Skip to content

Commit 4008446

Browse files
committed
10x the channel sizes
1 parent 3a9789d commit 4008446

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
@@ -255,7 +255,7 @@ async fn migrate_users(
255255
) -> Result<(MasWriter, MigrationMaps), Error> {
256256
let start = Instant::now();
257257

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

260260
let mut rng = rand_chacha::ChaCha8Rng::from_rng(rng).expect("failed to seed rng");
261261
let server_name = server_name.to_owned();
@@ -527,7 +527,7 @@ async fn migrate_devices(
527527
) -> Result<(MasWriter, MigrationMaps), Error> {
528528
let start = Instant::now();
529529

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

532532
let server_name = server_name.to_owned();
533533
let mut rng = rand_chacha::ChaChaRng::from_rng(rng).expect("failed to seed rng");
@@ -653,7 +653,7 @@ async fn migrate_unrefreshable_access_tokens(
653653
) -> Result<(MasWriter, MigrationMaps), Error> {
654654
let start = Instant::now();
655655

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

658658
let now = clock.now();
659659
let server_name = server_name.to_owned();

0 commit comments

Comments
 (0)