Skip to content

Commit

Permalink
update grpc
Browse files Browse the repository at this point in the history
  • Loading branch information
sunli829 committed Sep 7, 2024
1 parent 388c79e commit 0c6ccf4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion poem-grpc-build/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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([]),
}
}

Expand Down
4 changes: 2 additions & 2 deletions poem-grpc/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ impl GrpcClient {
Self {
ep: create_client_endpoint(config),
send_compressd: None,
accept_compressed: Default::default(),
accept_compressed: Arc::new([]),
}
}

Expand All @@ -179,7 +179,7 @@ impl GrpcClient {
Self {
ep: Arc::new(ToDynEndpoint(ep.map_to_response())),
send_compressd: None,
accept_compressed: Default::default(),
accept_compressed: Arc::new([]),
}
}

Expand Down

0 comments on commit 0c6ccf4

Please sign in to comment.