mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-15 13:16:56 +00:00
refactor(threepid): Use SyncMutex and decouple guard from ValidSession
Change threepid sessions and send_attempts to SyncMutex and avoid holding the sessions mutex across callers of get_valid_session.
This commit is contained in:
7 files changed
+90
-98
No files matched your search
@@ -135,7 +135,6 @@ pub(crate) async fn add_3pid_route(
|
||||
let email = services
|
||||
.threepid
|
||||
.get_valid_session(&body.sid, &body.client_secret)
|
||||
.await
|
||||
.map_err(|message| err!(Request(ThreepidAuthFailed("{message}"))))?
|
||||
.consume();
|
||||
|
||||
|
||||
Reference in new issue
Block a user