Use an i32 for user_id in RPC authentication message

This commit is contained in:
Antonio Scandurra 2021-06-17 14:51:06 +02:00
parent c5cec247c4
commit d243395e06
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@ message Envelope {
}
message Auth {
uint64 user_id = 1;
int32 user_id = 1;
string access_token = 2;
}

View file

@ -697,7 +697,7 @@ impl Workspace {
.request(
connection_id,
proto::Auth {
user_id: user_id.parse::<u64>()?,
user_id: user_id.parse()?,
access_token,
},
)