Register denali on yellowstone, handle read requests.
This commit is contained in:
parent
a5cdd23f0b
commit
6f0dfa8719
6 changed files with 56 additions and 22 deletions
|
|
@ -435,13 +435,13 @@ fn generate_async_server_method(method: &Method) -> TokenStream {
|
|||
let maybe_resp = method.response.clone().map(|r| ident(&r));
|
||||
match (maybe_req, maybe_resp) {
|
||||
(Some(req), Some(resp)) => quote! {
|
||||
fn #name (&self, req: #req) -> impl Future<Output= Result<#resp, ZError>> + Sync;
|
||||
fn #name (&self, req: #req) -> impl Future<Output= Result<#resp, ZError>> + Sync + Send;
|
||||
},
|
||||
(Some(req), None) => quote! {
|
||||
fn #name (&self, req: #req) -> impl Future<Output = Result<(), ZError>> + Sync;
|
||||
fn #name (&self, req: #req) -> impl Future<Output = Result<(), ZError>> + Sync + Send;
|
||||
},
|
||||
(None, Some(resp)) => quote! {
|
||||
fn #name (&self) -> impl Future<Output = Result<#resp, ZError>> + Sync;
|
||||
fn #name (&self) -> impl Future<Output = Result<#resp, ZError>> + Sync + Send;
|
||||
},
|
||||
_ => unreachable!(),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue