web search done right
forgot to open rocksdb with correct options...
Mikkel Denkerb4af8bf24a15
diff --git a/core/src/crawler/coordinator.rs b/core/src/crawler/coordinator.rsindex c7168ba1..9bb813c6 100644--- a/core/src/crawler/coordinator.rs+++ b/core/src/crawler/coordinator.rs@@ -86,7 +86,6 @@ impl CrawlCoordinator {.unwrap();tracing::debug!("inserted responses in {:?}", start.elapsed());- dbg!(start.elapsed());Ok(())}diff --git a/core/src/crawler/crawl_db.rs b/core/src/crawler/crawl_db.rsindex bfce167c..98e9c490 100644--- a/core/src/crawler/crawl_db.rs+++ b/core/src/crawler/crawl_db.rs@@ -78,8 +78,8 @@ wherelet _ = rocksdb::DB::destroy(&options, path.as_ref().join("t2id"));let _ = rocksdb::DB::destroy(&options, path.as_ref().join("id2t"));- let t2id = rocksdb::DB::open_default(path.as_ref().join("t2id"))?;- let id2t = rocksdb::DB::open_default(path.as_ref().join("id2t"))?;+ let t2id = rocksdb::DB::open(&options, path.as_ref().join("t2id"))?;+ let id2t = rocksdb::DB::open(&options, path.as_ref().join("id2t"))?;Ok(Self {t2id,