fn create_lmdb_environment(
    lmdb_path: impl AsRef<Path>,
    default_max_db_size: usize,
    manual_sync_enabled: bool,
) -> Result<Arc<LmdbEnvironment>, anyhow::Error> {
    let lmdb_environment = Arc::new(LmdbEnvironment::new(
        &lmdb_path,
        default_max_db_size,
        DEFAULT_MAX_READERS,
        manual_sync_enabled,
    )?);
    Ok(lmdb_environment)
}
/// Create an lmdb environment at a given path.
Create an lmdb environment at a given path.
Create an lmdb environment at a given path .
fn create_lmdb_environment(
    lmdb_path: impl AsRef<Path>,
    default_max_db_size: usize,
    manual_sync_enabled: bool,
) -> Result<Arc<LmdbEnvironment>, anyhow::Error> {
    let lmdb_environment = Arc::new(LmdbEnvironment::new(
        &lmdb_path,
        default_max_db_size,
        DEFAULT_MAX_READERS,
        manual_sync_enabled,
    )?);
    Ok(lmdb_environment)
}
fn create_lmdb_environment ( lmdb_path : impl AsRef < Path > , default_max_db_size : usize , manual_sync_enabled : bool , ) -> Result < Arc < LmdbEnvironment > , anyhow :: Error > { let lmdb_environment = Arc :: new ( LmdbEnvironment :: new ( & lmdb_path , default_max_db_size , DEFAULT_MAX_READERS , manual_sync_enabled , ) ? ) ; Ok ( lmdb_environment ) }
Create an lmdb environment at a given path.
Create an lmdb environment at a given path .
lmdb_path
impl AsRef<Path>
default_max_db_size
usize
manual_sync_enabled
bool
lmdb_path
impl AsRef<Path>
default_max_db_size
usize
manual_sync_enabled
bool