1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-08-09 04:22:45 +03:00

Don't hold the database connection for too long

This commit is contained in:
Quentin Gliech
2024-07-12 18:24:24 +02:00
parent bf276289b6
commit 11fd3b231a

View File

@@ -225,8 +225,9 @@ async fn sync_devices(
}
}
// We now have a complete list of devices, so we can sync them with the
// homeserver
// We now have a complete list of devices, we can now release the connection and
// sync with the homeserver
repo.save().await?;
let mxid = matrix.mxid(&user.username);
matrix.sync_devices(&mxid, devices).await?;