Move Arc outside of rpc::Client

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Max Brunsfeld
2021-08-19 12:56:50 -07:00
co-authored by Nathan Sobo
parent 3631fbd874
commit 86c819757d
6 changed files with 45 additions and 33 deletions
+5 -1
View File
@@ -549,7 +549,11 @@ impl TestServer {
}
}
async fn create_client(&mut self, cx: &mut TestAppContext, name: &str) -> (UserId, Client) {
async fn create_client(
&mut self,
cx: &mut TestAppContext,
name: &str,
) -> (UserId, Arc<Client>) {
let user_id = self.app_state.db.create_user(name, false).await.unwrap();
let client = Client::new();
let (client_conn, server_conn) = Channel::bidirectional();