Flatten protobuf message namespace

* Remove `FromClient`/`FromServer` distinction.
* Remove `subscribe` concept - clients will need to handle
  unprompted messages from the server.

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Max Brunsfeld
2021-06-15 13:06:50 -07:00
co-authored by Nathan Sobo
parent 546ce14cb9
commit e88f33851e
5 changed files with 158 additions and 312 deletions
+2 -2
View File
@@ -673,8 +673,8 @@ impl Workspace {
let rpc_client = RpcClient::new(stream, executor);
let auth_response = rpc_client
.request(proto::from_client::Auth {
user_id: user_id.parse::<i32>()?,
.request(proto::Auth {
user_id: user_id.parse::<u64>()?,
access_token,
})
.await?;