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:
Jade Ellis committed 2026-10-28 21:47:09 +00:00
1 parent 98ae1fcaa1
commit 18f5f4fbfa
7 files changed
+90 -98

No files matched your search

-1
View File
@@ -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();