@@ -201,7 +201,7 @@ impl Client {
201201
202202 let request = jsonrpc::MethodCall {
203203 jsonrpc: Some(jsonrpc::Version::V2),
204− id,
204+ id: id.clone(),
205205 method: R::METHOD.to_string(),
206206 params: Self::value_into_params(params),
207207 };
@@ -218,7 +218,7 @@ impl Client {
218218 // TODO: delay other calls until initialize success
219219 timeout(Duration::from_secs(timeout_secs), rx.recv())
220220 .await
221− .map_err(|_| Error::Timeout)? // return Timeout
221+ .map_err(|_| Error::Timeout(id))? // return Timeout
222222 .ok_or(Error::StreamClosed)?
223223 }
224224 }