From 77f1318152ba1544ce2e6ec917851271e96168dc Mon Sep 17 00:00:00 2001 From: Rushmore Mushambi Date: Mon, 15 Apr 2024 12:28:08 +0200 Subject: [PATCH] Fix benchmarks (#3864) --- core/src/kvs/tx.rs | 4 ++-- lib/benches/sdb_benches/lib/routines/create.rs | 2 +- lib/benches/sdb_benches/lib/routines/read.rs | 2 +- lib/benches/sdb_benches/sdk/routines/create.rs | 2 +- lib/benches/sdb_benches/sdk/routines/read.rs | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/src/kvs/tx.rs b/core/src/kvs/tx.rs index b5f3129d..6462e2bf 100644 --- a/core/src/kvs/tx.rs +++ b/core/src/kvs/tx.rs @@ -45,8 +45,8 @@ use crate::sql::paths::OUT; use crate::sql::thing::Thing; use crate::sql::Strand; use crate::sql::Value; +use crate::vs::Oracle; use crate::vs::Versionstamp; -use crate::vs::{conv, Oracle}; use super::kv::Add; use super::kv::Convert; @@ -2907,7 +2907,7 @@ impl Transaction { trace!( "Setting timestamp {} for versionstamp {:?} in ns: {}, db: {}", ts, - conv::versionstamp_to_u64(&vs), + crate::vs::conv::versionstamp_to_u64(&vs), ns, db ); diff --git a/lib/benches/sdb_benches/lib/routines/create.rs b/lib/benches/sdb_benches/lib/routines/create.rs index e961de2b..db90148e 100644 --- a/lib/benches/sdb_benches/lib/routines/create.rs +++ b/lib/benches/sdb_benches/lib/routines/create.rs @@ -13,7 +13,7 @@ impl Create { pub fn new(runtime: &'static Runtime) -> Self { Self { runtime, - table_name: format!("table_{}", Id::rand()), + table_name: format!("table_{}", Id::rand().to_raw()), } } } diff --git a/lib/benches/sdb_benches/lib/routines/read.rs b/lib/benches/sdb_benches/lib/routines/read.rs index 572eda1a..c5bbe926 100644 --- a/lib/benches/sdb_benches/lib/routines/read.rs +++ b/lib/benches/sdb_benches/lib/routines/read.rs @@ -13,7 +13,7 @@ impl Read { pub fn new(runtime: &'static Runtime) -> Self { Self { runtime, - table_name: format!("table_{}", Id::rand()), + table_name: format!("table_{}", Id::rand().to_raw()), } } } diff --git a/lib/benches/sdb_benches/sdk/routines/create.rs b/lib/benches/sdb_benches/sdk/routines/create.rs index ac625251..75addaa0 100644 --- a/lib/benches/sdb_benches/sdk/routines/create.rs +++ b/lib/benches/sdb_benches/sdk/routines/create.rs @@ -12,7 +12,7 @@ impl Create { pub fn new(runtime: &'static Runtime) -> Self { Self { runtime, - table_name: format!("table_{}", Id::rand()), + table_name: format!("table_{}", Id::rand().to_raw()), } } } diff --git a/lib/benches/sdb_benches/sdk/routines/read.rs b/lib/benches/sdb_benches/sdk/routines/read.rs index a652faa7..76ab934a 100644 --- a/lib/benches/sdb_benches/sdk/routines/read.rs +++ b/lib/benches/sdb_benches/sdk/routines/read.rs @@ -12,7 +12,7 @@ impl Read { pub fn new(runtime: &'static Runtime) -> Self { Self { runtime, - table_name: format!("table_{}", Id::rand()), + table_name: format!("table_{}", Id::rand().to_raw()), } } }