Remove deadlock and make integration tests pass again

This commit is contained in:
Antonio Scandurra
2021-09-21 11:58:31 +02:00
parent 1954c6b00e
commit 0b11192fe3
+3 -3
View File
@@ -295,12 +295,12 @@ impl Server {
.map(|entry| (entry.id, entry))
.collect();
if let Some(collaborator_user_ids) =
let collaborator_user_ids =
self.store
.write()
.await
.share_worktree(worktree.id, request.sender_id, entries)
{
.share_worktree(worktree.id, request.sender_id, entries);
if let Some(collaborator_user_ids) = collaborator_user_ids {
self.peer
.respond(request.receipt(), proto::ShareWorktreeResponse {})
.await?;