feat: phase out environment trait (#5439)

This commit is contained in:
Matthias Seitz
2023-11-15 17:42:34 +01:00
committed by GitHub
parent de0cca2488
commit dc72cad838
19 changed files with 212 additions and 227 deletions

View File

@ -1,4 +1,4 @@
use reth_libmdbx::{Environment, NoWriteMap, WriteFlags};
use reth_libmdbx::{Environment, WriteFlags};
use tempfile::{tempdir, TempDir};
pub fn get_key(n: u32) -> String {
@ -9,7 +9,7 @@ pub fn get_data(n: u32) -> String {
format!("data{n}")
}
pub fn setup_bench_db(num_rows: u32) -> (TempDir, Environment<NoWriteMap>) {
pub fn setup_bench_db(num_rows: u32) -> (TempDir, Environment) {
let dir = tempdir().unwrap();
let env = Environment::builder().open(dir.path()).unwrap();