Report io errors when sending payloads for RpcClient methods

Co-Authored-By: Antonio Scandurra <me@as-cii.com>
This commit is contained in:
Max Brunsfeld 2021-06-14 16:10:44 -07:00
parent a87d4db155
commit 1c597ed998
2 changed files with 130 additions and 66 deletions

View file

@ -60,7 +60,7 @@ fn share_worktree(_: &(), cx: &mut MutableAppContext) {
// a TLS stream using `native-tls`.
let stream = smol::net::TcpStream::connect(rpc_address).await?;
let mut rpc_client = RpcClient::new(stream, executor);
let rpc_client = RpcClient::new(stream, executor);
let auth_response = rpc_client
.request(proto::from_client::Auth {