Rename OpenWorktree message to JoinWorktree

We'll repurpose the name 'OpenWorktree' for opening a local
worktree while signed in, and advertising the open status to
the worktree's collaborators.
This commit is contained in:
Max Brunsfeld
2021-09-16 12:57:19 -07:00
parent f0093974ee
commit 176ca9086e
4 changed files with 18 additions and 18 deletions
+3 -3
View File
@@ -293,7 +293,7 @@ impl Server {
async fn join_worktree(
self: Arc<Server>,
request: TypedEnvelope<proto::OpenWorktree>,
request: TypedEnvelope<proto::JoinWorktree>,
) -> tide::Result<()> {
let worktree_id = request.payload.worktree_id;
let access_token = &request.payload.access_token;
@@ -334,7 +334,7 @@ impl Server {
self.peer
.respond(
request.receipt(),
proto::OpenWorktreeResponse {
proto::JoinWorktreeResponse {
worktree_id,
worktree: Some(proto::Worktree {
root_name: worktree.root_name.clone(),
@@ -349,7 +349,7 @@ impl Server {
self.peer
.respond(
request.receipt(),
proto::OpenWorktreeResponse {
proto::JoinWorktreeResponse {
worktree_id,
worktree: None,
replica_id: 0,