Skip to content

Commit

Permalink
fix: add meta client timeout (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZuLiangWang authored Nov 17, 2022
1 parent 57bb232 commit e4f3215
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion meta_client/src/meta_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ impl MetaClientImpl {
.map_err(|e| Box::new(e) as _)
.context(FailConnect {
addr: &config.meta_addr,
})?;
})?
.timeout(config.timeout.0);
MetaServiceGrpcClient::connect(endpoint)
.await
.map_err(|e| Box::new(e) as _)
Expand Down

0 comments on commit e4f3215

Please sign in to comment.