Skip to content

Commit 3e7c3b8

Browse files
Buckram123Kayanski
andauthored
assume_http2 on grpc (#534)
* assume_http2 on grpc * Updated version --------- Co-authored-by: Kayanski <kowalski.kowalskin@gmail.com>
1 parent 0c28a26 commit 3e7c3b8

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

cw-orch-daemon/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ license = { workspace = true }
88
name = "cw-orch-daemon"
99
readme = "../README.md"
1010
repository = { workspace = true }
11-
version = "0.29.0"
11+
version = "0.29.1"
1212

1313
exclude = [".env"]
1414

cw-orch-daemon/src/channel.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@ impl GrpcChannel {
2525
let uri = Uri::from_maybe_shared(address.clone()).expect("Invalid URI");
2626

2727
let maybe_channel = Endpoint::from(uri)
28-
.tls_config(ClientTlsConfig::new().with_enabled_roots())
28+
.tls_config(
29+
ClientTlsConfig::new()
30+
.with_enabled_roots()
31+
// grpcs are http/2 by spec
32+
.assume_http2(true),
33+
)
2934
.unwrap()
3035
.connect()
3136
.await;

0 commit comments

Comments
 (0)