From b23d9031be28e5cf0d725dd66ef6c2c501c3920b Mon Sep 17 00:00:00 2001 From: Sunli Date: Sat, 7 Sep 2024 21:22:15 +0800 Subject: [PATCH] update grpc --- poem-grpc-build/src/server.rs | 2 +- poem-grpc/src/client.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/poem-grpc-build/src/server.rs b/poem-grpc-build/src/server.rs index fad11d8eba..a8f1196548 100644 --- a/poem-grpc-build/src/server.rs +++ b/poem-grpc-build/src/server.rs @@ -128,7 +128,7 @@ pub(crate) fn generate(config: &GrpcConfig, service: &Service, buf: &mut String) Self { inner: ::std::sync::Arc::new(service), send_compressd: ::std::option::Option::None, - accept_compressed: ::std::default::Default::default(), + accept_compressed: ::std::sync::Arc::new([]), } } diff --git a/poem-grpc/src/client.rs b/poem-grpc/src/client.rs index 07a17a814b..91879e0ebc 100644 --- a/poem-grpc/src/client.rs +++ b/poem-grpc/src/client.rs @@ -166,7 +166,7 @@ impl GrpcClient { Self { ep: create_client_endpoint(config), send_compressd: None, - accept_compressed: Default::default(), + accept_compressed: Arc::new([]), } }