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 883e814 commit bfd1456
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,12 @@ my-grpc-extensions = { tag = "get_tag_from_github", git = "https://github.com/My

#### main.rs
```rust
let grpc_client = MyLoggerGrpcClient::new(Arc::new(GrpcLogSettings::new(
over_ssh_connection.remote_resource_string,
)));

// Here we specify settings behind SSH connection. For instance: http://10.0.0.1:5051 which means we connecting to
// remote network 10.0.0.0/24 behind SSH connection.
let grpc_settings = GrpcLogSettings::new(over_ssh_connection.remote_resource_string);

let grpc_client = MyLoggerGrpcClient::new(Arc::new(grpc_settings));


//part of my_ssh library
Expand All @@ -59,6 +62,7 @@ my-grpc-extensions = { tag = "get_tag_from_github", git = "https://github.com/My
let ssh_sessions_pool:Arc<_> = Arc::new(SshSessionsPool::new()).into();


//Enabling SSH connection
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;
Expand Down

0 comments on commit bfd1456

Please sign in to comment.