Skip to content

Commit

Permalink
fix(volo-grpc): ci fail
Browse files Browse the repository at this point in the history
  • Loading branch information
PureWhiteWu committed Feb 19, 2024
1 parent 5675b90 commit 8700f73
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,15 @@ jobs:
toolchain: ${{matrix.rust}}
- name: Run tests
run: |
apt update
apt install -y libssl-dev
cargo check -p volo-thrift --no-default-features
cargo check -p volo-thrift --no-default-features --features multiplex
cargo check -p volo-thrift --no-default-features --features unsafe-codec
cargo check -p volo-grpc --no-default-features
cargo check -p volo-grpc --no-default-features --features rustls
cargo check -p volo-grpc --no-default-features --features native-tls,vendored
cargo check -p volo-grpc --no-default-features --features native-tls
cargo check -p volo-grpc --no-default-features --features native-tls-vendored
cargo check -p volo-http --no-default-features
cargo check -p volo-http --no-default-features --features default_client
cargo check -p volo-http --no-default-features --features default_server
Expand All @@ -64,12 +67,15 @@ jobs:
toolchain: ${{matrix.rust}}
- name: Run tests
run: |
apt update
apt install -y libssl-dev
cargo check -p volo-thrift --no-default-features
cargo check -p volo-thrift --no-default-features --features multiplex
cargo check -p volo-thrift --no-default-features --features unsafe-codec
cargo check -p volo-grpc --no-default-features
cargo check -p volo-grpc --no-default-features --features rustls
cargo check -p volo-grpc --no-default-features --features native-tls,vendored
cargo check -p volo-grpc --no-default-features --features native-tls
cargo check -p volo-grpc --no-default-features --features native-tls-vendored
cargo check -p volo-http --no-default-features
cargo check -p volo-http --no-default-features --features default_client
cargo check -p volo-http --no-default-features --features default_server
Expand Down Expand Up @@ -98,7 +104,8 @@ jobs:
cargo check -p volo-thrift --no-default-features --features unsafe-codec
cargo check -p volo-grpc --no-default-features
cargo check -p volo-grpc --no-default-features --features rustls
cargo check -p volo-grpc --no-default-features --features native-tls,vendored
cargo check -p volo-grpc --no-default-features --features native-tls
cargo check -p volo-grpc --no-default-features --features native-tls-vendored
cargo check -p volo-http --no-default-features
cargo check -p volo-http --no-default-features --features default_client
cargo check -p volo-http --no-default-features --features default_server
Expand Down Expand Up @@ -127,7 +134,8 @@ jobs:
cargo check -p volo-thrift --no-default-features --features unsafe-codec
cargo check -p volo-grpc --no-default-features
cargo check -p volo-grpc --no-default-features --features rustls
cargo check -p volo-grpc --no-default-features --features native-tls,vendored
cargo check -p volo-grpc --no-default-features --features native-tls
cargo check -p volo-grpc --no-default-features --features native-tls-vendored
cargo check -p volo-http --no-default-features
cargo check -p volo-http --no-default-features --features default_client
cargo check -p volo-http --no-default-features --features default_server
Expand Down
5 changes: 3 additions & 2 deletions volo-grpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,6 @@ tracing-subscriber.workspace = true
[features]
default = []

rustls = ["tokio-rustls"]
native-tls = ["tokio-native-tls"]
rustls = ["tokio-rustls", "volo/rustls"]
native-tls = ["tokio-native-tls", "volo/native-tls"]
native-tls-vendored = ["native-tls", "volo/native-tls-vendored"]
3 changes: 2 additions & 1 deletion volo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ tokio-native-tls = { workspace = true, optional = true }
[features]
default = []

vendored = ["tokio-native-tls/vendored"]
rustls = ["tokio-rustls", "librustls"]

native-tls = ["tokio-native-tls"]
native-tls-vendored = ["native-tls", "tokio-native-tls/vendored"]
1 change: 1 addition & 0 deletions volo/src/net/dial.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ cfg_rustls_or_native_tls! {
async fn call(&self, addr: Address) -> Result<Self::Response, Self::Error> {
match addr {
Address::Ip(addr) => {
#[allow(unused_variables)]
let tcp = make_tcp_connection(&self.cfg, addr).await?;

match &self.tls_config.connector {
Expand Down

0 comments on commit 8700f73

Please sign in to comment.