add sled cache_capacity back

This commit is contained in:
Jonathan de Jong 2021-07-15 13:29:08 +02:00
parent f7ecf83ac3
commit 661101c9ae
3 changed files with 9 additions and 3 deletions

View file

@ -14,7 +14,7 @@ impl DatabaseEngine for Engine {
Ok(Arc::new(Engine(
sled::Config::default()
.path(&config.database_path)
.cache_capacity((config.db_cache_capacity_mb * 1024 * 1024) as u64)
.cache_capacity(config.sled_cache_capacity_bytes)
.use_compression(true)
.open()?,
)))