Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
amigin committed Jul 29, 2024
1 parent 92a4c1c commit 1898333
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,22 @@ my-grpc-extensions = { tag = "{max_version}", git = "https://github.com/MyJetToo


//part of my_ssh library
let ssh_credentials = SshCredentials::SshAgent{
let ssh_credentials = my_grpc_extensions::my_ssh::SshCredentials::SshAgent{
ssh_remote_host: "10.0.0.2".to_string(),
ssh_remote_port: 22,
ssh_user_name: "user".to_string(),
};

//part of my_ssh library.
let ssh_sessions_pool:Arc<_> = Arc::new(SshSessionsPool::new()).into();


grpc_client.set_ssh_credentials(Arc::new(ssh_credentials)).await;

// If we plug the pool - connection is not going to be closed after each request;
grpc_client
.set_ssh_sessions_pool(ssh_sessions_pool.clone())
.await;


```

0 comments on commit 1898333

Please sign in to comment.