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 b23d903
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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
2 changes: 1 addition & 1 deletion 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 Down

0 comments on commit b23d903

Please sign in to comment.