mirror of https://github.com/helix-editor/helix
wip
parent
d2b9a5d654
commit
8744f367bd
|
@ -148,7 +148,8 @@ impl Client {
|
|||
})
|
||||
.map_err(|e| Error::Other(e.into()))?;
|
||||
|
||||
timeout(Duration::from_secs(2), rx.recv())
|
||||
// TODO: specifiable timeout, delay other calls until initialize success
|
||||
timeout(Duration::from_secs(20), rx.recv())
|
||||
.await
|
||||
.map_err(|_| Error::Timeout)? // return Timeout
|
||||
.ok_or(Error::StreamClosed)?
|
||||
|
|
Loading…
Reference in New Issue