let grpc_client = GrpcClient::new();
let service1_client = Service1Client.with_client(grpc_client);
let service2_client = Service1Client.with_client(grpc_client);
What signature of with_client should be? Should it take parameter
by borrowing reference
it should take Arc<GrpcClient>
or probably GrpcClient should be Clone with Arc inside
Something like that:
What signature of
with_client
should be? Should it take parameterArc<GrpcClient>
GrpcClient
should beClone
withArc
inside