Rename client to channel

This commit is contained in:
Lucio Franco
2019-09-01 12:44:01 -04:00
parent 9705f9048d
commit 60e6d5df08
12 changed files with 70 additions and 30 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
use tonic::transport::Client;
use tonic::transport::Channel;
pub mod hello_world {
include!(concat!(env!("OUT_DIR"), "/helloworld.rs"));
@@ -9,7 +9,7 @@ pub mod hello_world {
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let origin = http::Uri::from_static("http://[::1]:50051");
let svc = Client::builder().build(origin)?;
let svc = Channel::builder().build(origin)?;
let mut client = hello_world::GreeterClient::new(svc);