Modify runtime to allow memory or disk db

DiskDB is not working yet, but we'll get there!
This commit is contained in:
Paul Hauner
2019-03-31 18:57:48 +11:00
parent 9a0ebac687
commit 08b1808745
6 changed files with 107 additions and 13 deletions

View File

@@ -119,6 +119,12 @@ impl ClientConfig {
}
}
match args.value_of("db") {
Some("rocks") => config.db_type = DBType::RocksDB,
Some("memory") => config.db_type = DBType::Memory,
_ => unreachable!(), // clap prevents this.
};
Ok(config)
}
}