also pass rpcenv to async handlers

This commit is contained in:
Dietmar Maurer
2019-01-27 10:18:52 +01:00
parent d2ab5f19e2
commit e82dad9700
3 changed files with 22 additions and 7 deletions

View File

@ -47,7 +47,13 @@ impl Future for UploadCaTar {
}
}
fn upload_catar(parts: Parts, req_body: Body, param: Value, _info: &ApiAsyncMethod) -> Result<BoxFut, Error> {
fn upload_catar(
parts: Parts,
req_body: Body,
param: Value,
_info: &ApiAsyncMethod,
_rpcenv: &mut RpcEnvironment,
) -> Result<BoxFut, Error> {
let store = tools::required_string_param(&param, "store")?;
let archive_name = tools::required_string_param(&param, "archive_name")?;
@ -109,7 +115,13 @@ pub fn api_method_upload_catar() -> ApiAsyncMethod {
)
}
fn download_catar(_parts: Parts, _req_body: Body, param: Value, _info: &ApiAsyncMethod) -> Result<BoxFut, Error> {
fn download_catar(
_parts: Parts,
_req_body: Body,
param: Value,
_info: &ApiAsyncMethod,
_rpcenv: &mut RpcEnvironment,
) -> Result<BoxFut, Error> {
let store = tools::required_string_param(&param, "store")?;
let archive_name = tools::required_string_param(&param, "archive_name")?;