mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
Style
Co-Authored-By: Max Brunsfeld <max@zed.dev>
This commit is contained in:
parent
81ed961659
commit
a79b4e312b
@ -128,15 +128,10 @@ impl Room {
|
|||||||
let url = url.to_string();
|
let url = url.to_string();
|
||||||
let token = token.to_string();
|
let token = token.to_string();
|
||||||
async move {
|
async move {
|
||||||
match rx.await.unwrap().context("error connecting to room") {
|
rx.await.unwrap().context("error connecting to room")?;
|
||||||
Ok(()) => {
|
*this.connection.lock().0.borrow_mut() = ConnectionState::Connected { url, token };
|
||||||
*this.connection.lock().0.borrow_mut() =
|
|
||||||
ConnectionState::Connected { url, token };
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
Err(err) => Err(err),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn did_disconnect(&self) {
|
fn did_disconnect(&self) {
|
||||||
|
Loading…
Reference in New Issue
Block a user