route document add json

This commit is contained in:
mpostma 2020-12-23 16:12:37 +01:00
parent 1a38bfd31f
commit 02ef1d41d7
5 changed files with 71 additions and 13 deletions

View file

@ -5,6 +5,7 @@ pub use settings::{Settings, Facets};
use std::io;
use std::sync::Arc;
use std::ops::Deref;
use std::fs::create_dir_all;
use anyhow::Result;
use flate2::read::GzDecoder;
@ -336,6 +337,7 @@ impl UpdateQueue {
let handler = UpdateHandler::new(&opt.indexer_options, indexes, sender)?;
let size = opt.max_udb_size.get_bytes() as usize;
let path = opt.db_path.join("updates.mdb");
create_dir_all(&path)?;
let inner = UpdateStore::open(
Some(size),
path,