Skip to content

Commit f7f4162

Browse files
committed
Allocate a larger users buffer
1 parent 39be8c3 commit f7f4162

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/syn2mas/src/migration.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,8 @@ async fn migrate_users(
251251
let start = Instant::now();
252252
let otel_kv = [KeyValue::new(K_ENTITY, V_ENTITY_USERS)];
253253

254-
let (tx, mut rx) = tokio::sync::mpsc::channel::<SynapseUser>(10 * 1024 * 1024);
254+
// HACK(matrix.org): allocate a large buffer
255+
let (tx, mut rx) = tokio::sync::mpsc::channel::<SynapseUser>(50 * 1024 * 1024);
255256

256257
// create a new RNG seeded from the passed RNG so that we can move it into the
257258
// spawned task

0 commit comments

Comments
 (0)