Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sdk/rust: update tonic version to support more features #53

Merged
merged 1 commit into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions sdk/rust/ccnp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ path = "src/lib.rs"
cctrusted_base = { git="https://github.com/cc-api/cc-trusted-api" }
anyhow = "1.0"
log = "0.4.20"
tonic = "0.9"
tonic = "0.11"
base64 = "0.13.0"
tower = { version = "0.4", features = ["util"] }
prost = "0.11"
tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] }
prost = "0.12"
tokio = { version = "1", features = ["full"] }
hashbrown = "0.14"
lazy_static = "1.4.0"

[build-dependencies]
tonic-build = "0.9"
tonic-build = "0.11"
11 changes: 6 additions & 5 deletions sdk/rust/ccnp/src/ccnp_server_pb.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// This file is @generated by prost-build.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HealthCheckRequest {
Expand Down Expand Up @@ -504,7 +505,7 @@ pub mod ccnp_server {
) -> Self::Future {
let inner = Arc::clone(&self.0);
let fut = async move {
(*inner).get_default_algorithm(request).await
<T as Ccnp>::get_default_algorithm(&inner, request).await
};
Box::pin(fut)
}
Expand Down Expand Up @@ -550,7 +551,7 @@ pub mod ccnp_server {
) -> Self::Future {
let inner = Arc::clone(&self.0);
let fut = async move {
(*inner).get_measurement_count(request).await
<T as Ccnp>::get_measurement_count(&inner, request).await
};
Box::pin(fut)
}
Expand Down Expand Up @@ -594,7 +595,7 @@ pub mod ccnp_server {
) -> Self::Future {
let inner = Arc::clone(&self.0);
let fut = async move {
(*inner).get_cc_report(request).await
<T as Ccnp>::get_cc_report(&inner, request).await
};
Box::pin(fut)
}
Expand Down Expand Up @@ -640,7 +641,7 @@ pub mod ccnp_server {
) -> Self::Future {
let inner = Arc::clone(&self.0);
let fut = async move {
(*inner).get_cc_measurement(request).await
<T as Ccnp>::get_cc_measurement(&inner, request).await
};
Box::pin(fut)
}
Expand Down Expand Up @@ -686,7 +687,7 @@ pub mod ccnp_server {
) -> Self::Future {
let inner = Arc::clone(&self.0);
let fut = async move {
(*inner).get_cc_eventlog(request).await
<T as Ccnp>::get_cc_eventlog(&inner, request).await
};
Box::pin(fut)
}
Expand Down
6 changes: 3 additions & 3 deletions sdk/rust/ccnp/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ impl CcnpServiceClient {
user_data: data,
});

let mut ccnp_client = CcnpClient::new(channel);
let mut ccnp_client = CcnpClient::new(channel).max_decoding_message_size(usize::MAX);

let response = ccnp_client
.get_cc_report(request)
Expand Down Expand Up @@ -128,7 +128,7 @@ impl CcnpServiceClient {
algo_id: algo_id.into(),
});

let mut ccnp_client = CcnpClient::new(channel);
let mut ccnp_client = CcnpClient::new(channel).max_decoding_message_size(usize::MAX);

let response = ccnp_client
.get_cc_measurement(request)
Expand Down Expand Up @@ -182,7 +182,7 @@ impl CcnpServiceClient {
count,
});

let mut ccnp_client = CcnpClient::new(channel);
let mut ccnp_client = CcnpClient::new(channel).max_decoding_message_size(usize::MAX);

let response = ccnp_client
.get_cc_eventlog(request)
Expand Down
Loading