mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-06 06:48:01 +00:00
Add cli param to limit database cache size (#1261)
* Add cli param to limit datbase cache size * fixing tests
This commit is contained in:
committed by
GitHub
parent
8606595a6d
commit
bd2a206e40
@@ -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(),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user