mirror of
https://github.com/MercuryWorkshop/epoxy-tls.git
synced 2025-05-13 06:20:02 -04:00
remove the mutex<hashmap> in wisp_mux, other improvements
This commit is contained in:
parent
ff2a1ad269
commit
7001ee8fa5
16 changed files with 346 additions and 309 deletions
|
@ -231,7 +231,7 @@ pub async fn replace_mux(
|
|||
) -> Result<(), WispError> {
|
||||
let (mux_replace, fut) = make_mux(url).await?;
|
||||
let mut mux_write = mux.write().await;
|
||||
mux_write.close().await;
|
||||
mux_write.close().await?;
|
||||
*mux_write = mux_replace;
|
||||
drop(mux_write);
|
||||
spawn_mux_fut(mux, fut, url.into());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue