stepancheg / grpc-rust

Rust implementation of gRPC
MIT License
1.37k stars 124 forks source link

Single client to call multiple services on same host/port #76

Closed stepancheg closed 7 years ago

stepancheg commented 7 years ago

Something like that:

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