Skip to content

Commit

Permalink
Revert ":wrench: Assume http2 for grpc clients (#284)" (#293)
Browse files Browse the repository at this point in the history
This reverts commit 9720217.

Signed-off-by: Evaline Ju <69598118+evaline-ju@users.noreply.github.com>
  • Loading branch information
evaline-ju authored Feb 6, 2025
1 parent 175bf51 commit d82b00d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/clients.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,8 @@ pub async fn create_grpc_client<C: Debug + Clone>(
.await
.unwrap_or_else(|error| panic!("error reading key from {key_path:?}: {error}"));
let identity = tonic::transport::Identity::from_pem(cert_pem, key_pem);
// assume_http2 added ref. https://github.com/hyperium/tonic/issues/1427
let mut client_tls_config = tonic::transport::ClientTlsConfig::new()
.identity(identity)
.assume_http2(true)
.with_native_roots()
.with_webpki_roots();
if let Some(client_ca_cert_path) = &tls_config.client_ca_cert_path {
Expand Down

0 comments on commit d82b00d

Please sign in to comment.