From 7d9f973f9156f1285533d52ef4d72986cf186e0b Mon Sep 17 00:00:00 2001 From: Buckram Date: Tue, 14 Jan 2025 17:13:02 +0200 Subject: [PATCH] assume_http2 on grpc --- cw-orch-daemon/src/channel.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cw-orch-daemon/src/channel.rs b/cw-orch-daemon/src/channel.rs index 6f58ac461..43fce8e40 100644 --- a/cw-orch-daemon/src/channel.rs +++ b/cw-orch-daemon/src/channel.rs @@ -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;