tape: make changer get_status async
This commit is contained in:
parent
065df12872
commit
b5c1296eaa
|
@ -194,7 +194,7 @@ fn get_config(
|
|||
},
|
||||
)]
|
||||
/// Get tape changer status
|
||||
fn get_status(
|
||||
async fn get_status(
|
||||
param: Value,
|
||||
rpcenv: &mut dyn RpcEnvironment,
|
||||
) -> Result<(), Error> {
|
||||
|
@ -202,7 +202,7 @@ fn get_status(
|
|||
let output_format = get_output_format(¶m);
|
||||
let info = &api2::tape::changer::API_METHOD_GET_STATUS;
|
||||
let mut data = match info.handler {
|
||||
ApiHandler::Sync(handler) => (handler)(param, info, rpcenv)?,
|
||||
ApiHandler::Async(handler) => (handler)(param, info, rpcenv).await?,
|
||||
_ => unreachable!(),
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue