We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aaed0f0 commit 2cd4d07Copy full SHA for 2cd4d07
libs/gl-plugin/src/awaitables.rs
@@ -294,10 +294,7 @@ async fn ensure_peer_connection(
294
295
async fn get_version(rpc_path: impl AsRef<Path>) -> Result<String, Error> {
296
let mut rpc = connect(rpc_path).await?;
297
- let info = rpc
298
- .call_typed(&GetinfoRequest {})
299
- .await
300
- .map_err(|_| Error::Peer("unable to connect"))?;
+ let info = rpc.call_typed(&GetinfoRequest {}).await?;
301
Ok(info.version)
302
}
303
0 commit comments