SSH connection pooling (#19692)
Co-Authored-By: Max <max@zed.dev> Closes #ISSUE Release Notes: - SSH Remoting: Reuse connections across hosts --------- Co-authored-by: Max <max@zed.dev>
This commit is contained in:
parent
3a9c071e6e
commit
d45b830412
4 changed files with 686 additions and 541 deletions
|
@ -702,7 +702,7 @@ async fn init_test(
|
|||
) -> (Model<Project>, Model<HeadlessProject>, Arc<FakeFs>) {
|
||||
init_logger();
|
||||
|
||||
let (forwarder, ssh_server_client) = SshRemoteClient::fake_server(cx, server_cx);
|
||||
let (opts, ssh_server_client) = SshRemoteClient::fake_server(cx, server_cx);
|
||||
let fs = FakeFs::new(server_cx.executor());
|
||||
fs.insert_tree(
|
||||
"/code",
|
||||
|
@ -744,7 +744,7 @@ async fn init_test(
|
|||
)
|
||||
});
|
||||
|
||||
let ssh = SshRemoteClient::fake_client(forwarder, cx).await;
|
||||
let ssh = SshRemoteClient::fake_client(opts, cx).await;
|
||||
let project = build_project(ssh, cx);
|
||||
project
|
||||
.update(cx, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue