Skip to content

Commit

Permalink
Update tonic (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardpringle authored Feb 12, 2024
1 parent 3614b8f commit f0ab919
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions avalanchego-conformance-sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ log = "0.4.20"
prost = "0.12.1"
tokio = { version = "1.33.0", features = ["fs", "rt-multi-thread", "macros"] }
tokio-stream = { version = "0.1.14", features = ["net"] }
tonic = "0.10.2"
tonic = "0.11.0"

[build-dependencies]
# ref. https://github.com/hyperium/tonic/tags
# ref. https://github.com/hyperium/tonic/tree/master/tonic-build
tonic-build = "0.10.2"
tonic-build = "0.11.0"

[dev-dependencies]
env_logger = "0.11.1"
6 changes: 3 additions & 3 deletions crates/avalanche-types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ num-traits = { version = "0.2.15", optional = true }
prost = { version = "0.12.1", optional = true } # prost-build requires "cmake", https://github.com/tokio-rs/prost/releases
semver = { version = "1.0.17", optional = true }
tokio-stream = { version = "0.1.14", features = ["net"], optional = true }
tonic = { version = "0.10.2", features = ["gzip"], optional = true } # https://github.com/hyperium/tonic/tags
tonic-health = { version = "0.10.2", optional = true } # https://github.com/hyperium/tonic/blob/v0.9.0/tonic-health/src/lib.rs
tonic-reflection = { version = "0.10.2", optional = true }
tonic = { version = "0.11.0", features = ["gzip"], optional = true } # https://github.com/hyperium/tonic/tags
tonic-health = { version = "0.11.0", optional = true } # https://github.com/hyperium/tonic/blob/v0.9.0/tonic-health/src/lib.rs
tonic-reflection = { version = "0.11.0", optional = true }
tower-service = { version = "0.3.2", optional = true }

# [OPTIONAL] for "subnet_metrics"
Expand Down
3 changes: 2 additions & 1 deletion crates/avalanche-types/src/subnet/rpc/utils/grpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ use hyper::Body;
use tokio::sync::broadcast::Receiver;
use tonic::{
body::BoxBody,
transport::{Channel, Endpoint, NamedService},
server::NamedService,
transport::{Channel, Endpoint},
};
use tower_service::Service;

Expand Down
2 changes: 1 addition & 1 deletion crates/avalanche-types/src/subnet/rpc/vm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use crate::{
};
use futures::FutureExt;
use tokio::sync::broadcast::Receiver;
use tonic::transport::server::NamedService;
use tonic::server::NamedService;
use tonic_health::server::health_reporter;

use super::runtime::Initializer;
Expand Down

0 comments on commit f0ab919

Please sign in to comment.