Skip to content

Commit

Permalink
Iteratinve Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
amigin committed Jun 4, 2024
1 parent 27cf487 commit eaf1bc0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions my-grpc-client-macros/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ use my_grpc_client_macros::generate_grpc_client;
{fn_name:"Get", retries:2}
]
)]
pub struct KeyValueGrpcClient {
channel: my_grpc_extensions::GrpcChannel<TGrpcService>,
}

pub struct KeyValueGrpcClient;

```

Expand Down
4 changes: 2 additions & 2 deletions my-grpc-client-macros/src/grpc_client/generate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,13 @@ pub fn generate(
}

pub struct #struct_name{
channel: my_grpc_extensions::GrpcChannel<TGrpcService>,
channel: my_grpc_extensions::GrpcChannelPool<TGrpcService>,
}

impl #struct_name{
pub fn new(get_grpc_address: std::sync::Arc<dyn my_grpc_extensions::GrpcClientSettings + Send + Sync + 'static>,) -> Self {
Self {
channel: my_grpc_extensions::GrpcChannel::new(
channel: my_grpc_extensions::GrpcChannelPool::new(
get_grpc_address,
std::sync::Arc::new(MyGrpcServiceFactory),
std::time::Duration::from_secs(#timeout_sec),
Expand Down

0 comments on commit eaf1bc0

Please sign in to comment.