We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b34ae1 commit 3fe5a59Copy full SHA for 3fe5a59
crates/syn2mas/src/migration.rs
@@ -226,7 +226,7 @@ async fn migrate_users(
226
synapse: &mut SynapseReader<'_>,
227
mut mas: MasWriter,
228
count_hint: usize,
229
- state: MigrationState,
+ mut state: MigrationState,
230
rng: &mut impl RngCore,
231
) -> Result<(MasWriter, MigrationState), Error> {
232
let start = Instant::now();
@@ -254,6 +254,14 @@ async fn migrate_users(
254
flags |= UserFlags::IS_GUEST;
255
}
256
257
+ state.users.insert(
258
+ CompactString::new(&mas_user.username),
259
+ UserInfo {
260
+ mas_user_id: mas_user.user_id,
261
+ flags,
262
+ },
263
+ );
264
+
265
user_buffer
266
.write(&mut mas, mas_user)
267
.await
0 commit comments