@@ -148,7 +148,8 @@ impl Client {
149 .map_err(|e| Error::Other(e.into()))?;
149 .map_err(|e| Error::Other(e.into()))?;
151+ // TODO: specifiable timeout, delay other calls until initialize success
151− timeout(Duration::from_secs(2), rx.recv())
152+ timeout(Duration::from_secs(20), rx.recv())
153 .map_err(|_| Error::Timeout)? // return Timeout
154 .map_err(|_| Error::Timeout)? // return Timeout
154 .ok_or(Error::StreamClosed)?
155 .ok_or(Error::StreamClosed)?