Skip to content

Commit

Permalink
10x the channel sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
sandhose committed Feb 7, 2025
1 parent 1942baa commit 40003b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/syn2mas/src/migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ async fn migrate_users(
) -> Result<(MigrationState, MasWriter), Error> {
let start = Instant::now();

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

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

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

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

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

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

0 comments on commit 40003b0

Please sign in to comment.