From d243395e0680b72894b97bb3ce09add1b0f42009 Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Thu, 17 Jun 2021 14:51:06 +0200 Subject: [PATCH] Use an `i32` for user_id in RPC authentication message --- zed-rpc/proto/zed.proto | 2 +- zed/src/workspace.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/zed-rpc/proto/zed.proto b/zed-rpc/proto/zed.proto index eb994403d2..fb71c63c51 100644 --- a/zed-rpc/proto/zed.proto +++ b/zed-rpc/proto/zed.proto @@ -17,7 +17,7 @@ message Envelope { } message Auth { - uint64 user_id = 1; + int32 user_id = 1; string access_token = 2; } diff --git a/zed/src/workspace.rs b/zed/src/workspace.rs index 14e929bea4..d9dc1c313f 100644 --- a/zed/src/workspace.rs +++ b/zed/src/workspace.rs @@ -697,7 +697,7 @@ impl Workspace { .request( connection_id, proto::Auth { - user_id: user_id.parse::()?, + user_id: user_id.parse()?, access_token, }, )