From 29a6c6b87718f6cdcf541ae940ea7d84c0a8d03c Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Sat, 9 Sep 2023 10:24:08 +0300 Subject: [PATCH] Fix benchmark compilation --- core/benches/benchmark.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/core/benches/benchmark.rs b/core/benches/benchmark.rs index 9714c11be..eca48cd4a 100644 --- a/core/benches/benchmark.rs +++ b/core/benches/benchmark.rs @@ -1,11 +1,10 @@ use criterion::{criterion_group, criterion_main, Criterion, Throughput}; -use lig_core::{Database, SyncIO}; +use lig_core::{Database, IO}; use pprof::criterion::{Output, PProfProfiler}; -use std::sync::Arc; fn bench_db() -> Database { - let io = SyncIO::new(); - Database::open(Arc::new(io), "../testing/hello.db").unwrap() + let io = IO::default(); + Database::open(io, "../testing/hello.db").unwrap() } fn bench(c: &mut Criterion) {