Skip to content

Commit d6353c1

Browse files
committed
Code cleanup
1 parent 821aed3 commit d6353c1

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

rust/otap-dataflow/crates/otap/src/otap_grpc/client_settings.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,7 @@ pub struct GrpcClientSettings {
1818
pub grpc_endpoint: String,
1919

2020
/// Compression method to use for outbound requests. Defaults to no compression.
21-
#[serde(
22-
default,
23-
alias = "compression",
24-
alias = "compression_method",
25-
alias = "request_compression_method"
26-
)]
21+
#[serde(default)]
2722
pub compression: Option<CompressionMethod>,
2823

2924
/// Maximum number of concurrent in-flight requests allowed by the transport stack.

rust/otap-dataflow/crates/otap/src/otap_grpc/server_settings.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,15 @@ pub struct GrpcServerSettings {
2424
/// and deflate (in that preference order).
2525
#[serde(
2626
default,
27-
deserialize_with = "compression::deserialize_compression_methods",
28-
alias = "compression_method",
29-
alias = "request_compression_method"
27+
deserialize_with = "compression::deserialize_compression_methods"
3028
)]
3129
pub request_compression: Option<Vec<CompressionMethod>>,
3230

3331
/// Compression methods used for responses. Defaults to no compression, falling back to the
3432
/// request list when explicitly configured via the legacy `compression_method` option.
3533
#[serde(
3634
default,
37-
deserialize_with = "compression::deserialize_compression_methods",
38-
alias = "response_compression_method"
35+
deserialize_with = "compression::deserialize_compression_methods"
3936
)]
4037
pub response_compression: Option<Vec<CompressionMethod>>,
4138

0 commit comments

Comments
 (0)