mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-24 17:28:40 +00:00
Style
Co-Authored-By: Max Brunsfeld <max@zed.dev>
This commit is contained in:
parent
81ed961659
commit
a79b4e312b
1 changed files with 3 additions and 8 deletions
|
@ -128,14 +128,9 @@ impl Room {
|
|||
let url = url.to_string();
|
||||
let token = token.to_string();
|
||||
async move {
|
||||
match rx.await.unwrap().context("error connecting to room") {
|
||||
Ok(()) => {
|
||||
*this.connection.lock().0.borrow_mut() =
|
||||
ConnectionState::Connected { url, token };
|
||||
Ok(())
|
||||
}
|
||||
Err(err) => Err(err),
|
||||
}
|
||||
rx.await.unwrap().context("error connecting to room")?;
|
||||
*this.connection.lock().0.borrow_mut() = ConnectionState::Connected { url, token };
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue