Skip to content

Commit

Permalink
assume_http2 on grpc
Browse files Browse the repository at this point in the history
  • Loading branch information
Buckram123 committed Jan 14, 2025
1 parent 0c28a26 commit 7d9f973
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cw-orch-daemon/src/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ impl GrpcChannel {
let uri = Uri::from_maybe_shared(address.clone()).expect("Invalid URI");

let maybe_channel = Endpoint::from(uri)
.tls_config(ClientTlsConfig::new().with_enabled_roots())
.tls_config(
ClientTlsConfig::new()
.with_enabled_roots()
// grpcs are http/2 by spec
.assume_http2(true),
)
.unwrap()
.connect()
.await;
Expand Down

0 comments on commit 7d9f973

Please sign in to comment.