implement default on DatabaseOptions

This commit is contained in:
qdequele 2020-05-07 15:40:44 +02:00
parent fe21a43364
commit 2e55457ecc
No known key found for this signature in database
GPG key ID: B3F0A000EBF11745
4 changed files with 25 additions and 35 deletions

View file

@ -463,11 +463,7 @@ fn main() -> Result<(), Box<dyn Error>> {
env_logger::init();
let opt = Command::from_args();
let db_opts = DatabaseOptions {
main_map_size: 100 * 1024 * 1024 * 1024,
update_map_size: 100 * 1024 * 1024 * 1024,
};
let database = Database::open_or_create(opt.path(), db_opts)?;
let database = Database::open_or_create(opt.path(), DatabaseOptions::default())?;
match opt {
Command::Index(command) => index_command(command, database),