Moved client responses to mutex.

This commit is contained in:
2025-04-02 14:26:09 -04:00
parent 704625b078
commit 3355358ac5
5 changed files with 179 additions and 43 deletions

View File

@ -40,7 +40,7 @@ async fn mtt_conn(jar: CookieJar, state: State<MoreThanText>) -> impl IntoRespon
};
let (tx, mut rx) = channel(5);
spawn(async move {
tx.send(state.request(sid)).await.unwrap();
tx.send(state.clone().request(sid)).await.unwrap();
});
let reply = rx.recv().await.unwrap();
let cookie = Cookie::build((SESSION_KEY, reply.get_session()));