Skip to content

Commit 0c6ccf4

Browse files
committed
update grpc
1 parent 388c79e commit 0c6ccf4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

poem-grpc-build/src/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ pub(crate) fn generate(config: &GrpcConfig, service: &Service, buf: &mut String)
128128
Self {
129129
inner: ::std::sync::Arc::new(service),
130130
send_compressd: ::std::option::Option::None,
131-
accept_compressed: ::std::default::Default::default(),
131+
accept_compressed: ::std::sync::Arc::new([]),
132132
}
133133
}
134134

poem-grpc/src/client.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ impl GrpcClient {
166166
Self {
167167
ep: create_client_endpoint(config),
168168
send_compressd: None,
169-
accept_compressed: Default::default(),
169+
accept_compressed: Arc::new([]),
170170
}
171171
}
172172

@@ -179,7 +179,7 @@ impl GrpcClient {
179179
Self {
180180
ep: Arc::new(ToDynEndpoint(ep.map_to_response())),
181181
send_compressd: None,
182-
accept_compressed: Default::default(),
182+
accept_compressed: Arc::new([]),
183183
}
184184
}
185185

0 commit comments

Comments
 (0)