Fix benchmark compile errors (#2881)

* Fix benchmark compile errors

* Also check bench code during CI
This commit is contained in:
Hocuri
2021-12-09 22:52:53 +01:00
committed by GitHub
parent 46eb391a1b
commit b50f211c28
4 changed files with 4 additions and 8 deletions

View File

@@ -6,9 +6,7 @@ use std::path::Path;
async fn search_benchmark(path: impl AsRef<Path>) {
let dbfile = path.as_ref();
let id = 100;
let context = Context::new("FakeOS".into(), dbfile.into(), id)
.await
.unwrap();
let context = Context::new(dbfile.into(), id).await.unwrap();
for _ in 0..10u32 {
context.search_msgs(None, "hello").await.unwrap();