let repo = extract_repository_from_value(¶m)?;
- let mut client = connect(&repo)?;
+ let client = connect(&repo)?;
param.as_object_mut().unwrap().remove("repository");
let output_format = get_output_format(¶m);
- let mut client = connect(&repo)?;
+ let client = connect(&repo)?;
let path = format!("api2/json/admin/datastore/{}/gc", repo.store());
record_repository(&repo);
- view_task_result(&mut client, result, &output_format).await?;
+ view_task_result(&client, result, &output_format).await?;
Ok(Value::Null)
}
) -> Result<Value, Error> {
let repo = extract_repository_from_value(¶m)?;
- let mut client = connect(&repo)?;
+ let client = connect(&repo)?;
let path = format!("api2/json/admin/datastore/{}/prune", repo.store());