api: BoxFut -> ApiFuture

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller
2019-11-21 14:16:37 +01:00
parent 3d482025b3
commit 2194824f77
6 changed files with 20 additions and 22 deletions

View File

@ -47,7 +47,7 @@ fn upgrade_to_backup_protocol(
param: Value,
_info: &ApiMethod,
rpcenv: Box<dyn RpcEnvironment>,
) -> Result<BoxFut, Error> {
) -> Result<ApiFuture, Error> {
let debug = param["debug"].as_bool().unwrap_or(false);
@ -569,7 +569,7 @@ fn dynamic_chunk_index(
param: Value,
_info: &ApiMethod,
rpcenv: Box<dyn RpcEnvironment>,
) -> Result<BoxFut, Error> {
) -> Result<ApiFuture, Error> {
let env: &BackupEnvironment = rpcenv.as_ref();
@ -642,7 +642,7 @@ fn fixed_chunk_index(
param: Value,
_info: &ApiMethod,
rpcenv: Box<dyn RpcEnvironment>,
) -> Result<BoxFut, Error> {
) -> Result<ApiFuture, Error> {
let env: &BackupEnvironment = rpcenv.as_ref();