@@ -124,7 +124,7 @@ fn generate_trait_methods(service: &Service, proto_path: &str) -> TokenStream {
|
||||
|
||||
quote! {
|
||||
#stream_doc
|
||||
type #stream: Stream<Item = Result<#res_message, tonic::Status>> + Send + 'static;
|
||||
type #stream: Stream<Item = Result<#res_message, tonic::Status>> + Send + Sync + 'static;
|
||||
|
||||
#method_doc
|
||||
async fn #name(&self, request: tonic::Request<#req_message>)
|
||||
@@ -142,7 +142,7 @@ fn generate_trait_methods(service: &Service, proto_path: &str) -> TokenStream {
|
||||
|
||||
quote! {
|
||||
#stream_doc
|
||||
type #stream: Stream<Item = Result<#res_message, tonic::Status>> + Send + 'static;
|
||||
type #stream: Stream<Item = Result<#res_message, tonic::Status>> + Send + Sync + 'static;
|
||||
|
||||
#method_doc
|
||||
async fn #name(&self, request: tonic::Request<tonic::Streaming<#req_message>>)
|
||||
|
||||
Reference in New Issue
Block a user