Add cli param to limit database cache size (#1261)

* Add cli param to limit datbase cache size

* fixing tests
This commit is contained in:
Benjamin Kampmann
2018-12-13 12:32:41 +01:00
committed by GitHub
parent 8606595a6d
commit bd2a206e40
5 changed files with 13 additions and 2 deletions
+1 -1
View File
@@ -415,7 +415,7 @@ impl<Factory: ServiceFactory> Components for FullComponents<Factory> {
), error::Error>
{
let db_settings = client_db::DatabaseSettings {
cache_size: None,
cache_size: config.database_cache_size.map(|u| u as usize),
path: config.database_path.as_str().into(),
pruning: config.pruning.clone(),
};