split the dumps between v1 and v2

This commit is contained in:
tamo
2021-04-27 10:27:43 +02:00
parent e389c088eb
commit c4d898a265
6 changed files with 205 additions and 66 deletions

View File

@ -55,10 +55,10 @@ impl ApiKeys {
}
impl Data {
pub fn new(options: Opt) -> anyhow::Result<Data> {
pub async fn new(options: Opt) -> anyhow::Result<Data> {
let path = options.db_path.clone();
let index_controller = IndexController::new(&path, &options)?;
let index_controller = IndexController::new(&path, &options).await?;
let mut api_keys = ApiKeys {
master: options.clone().master_key,