mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-13 20:26:52 +00:00
use existing db cache size
This commit is contained in:
1 parent
661101c9ae
commit
d76e95e8fc
2 files changed
+1
-7
No files matched your search
@@ -14,7 +14,7 @@ impl DatabaseEngine for Engine {
|
||||
Ok(Arc::new(Engine(
|
||||
sled::Config::default()
|
||||
.path(&config.database_path)
|
||||
.cache_capacity(config.sled_cache_capacity_bytes)
|
||||
.cache_capacity((config.db_cache_capacity_mb * 1024.0 * 1024.0) as u64)
|
||||
.use_compression(true)
|
||||
.open()?,
|
||||
)))
|
||||
|
||||
Reference in new issue
Block a user