You've already forked authentication-service
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:
@@ -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?;
|
||||
|
||||
|
Reference in New Issue
Block a user