Skip to content

Commit

Permalink
Fix compiler warnings in the examples
Browse files Browse the repository at this point in the history
Since we now allow requests to be sent via a `&Client`, the `let mut`'s
are now unnecessary.

Signed-off-by: Chen Yu <[email protected]>
  • Loading branch information
Kazurin-775 authored and Tim-Zhang committed Jun 19, 2023
1 parent fd5e8f6 commit 986b933
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions example/async-client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ use ttrpc::r#async::Client;
#[tokio::main(flavor = "current_thread")]
async fn main() {
let c = Client::connect("unix:///tmp/1").unwrap();
let mut hc = health_ttrpc::HealthClient::new(c.clone());
let mut ac = agent_ttrpc::AgentServiceClient::new(c);
let hc = health_ttrpc::HealthClient::new(c.clone());
let ac = agent_ttrpc::AgentServiceClient::new(c);

let mut thc = hc.clone();
let mut tac = ac.clone();
let thc = hc.clone();
let tac = ac.clone();

let now = std::time::Instant::now();

Expand Down

0 comments on commit 986b933

Please sign in to comment.