mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 10:01:17 +00:00
Storage monitor added to polkadot node (#6619)
* Storage monitor added to polkadot node Related to: https://github.com/paritytech/substrate/issues/12399 * Cargo.lock updated * Cargo.lock update * Revert "Cargo.lock update" This reverts commit 04dfe5fe65ea7d1476d4632ad647f2c1c669ab1a. * Apply suggestions from code review Co-authored-by: Bastian Köcher <info@kchr.de> * missing_docs fixes * Cargo.lock updated --------- Co-authored-by: parity-processbot <> Co-authored-by: Bastian Köcher <info@kchr.de>
This commit is contained in:
committed by
GitHub
parent
af74f43413
commit
c251912652
@@ -335,7 +335,8 @@ where
|
||||
}))
|
||||
.flatten();
|
||||
|
||||
service::build_full(
|
||||
let database_source = config.database.clone();
|
||||
let task_manager = service::build_full(
|
||||
config,
|
||||
service::IsCollator::No,
|
||||
grandpa_pause,
|
||||
@@ -348,8 +349,15 @@ where
|
||||
maybe_malus_finality_delay,
|
||||
hwbench,
|
||||
)
|
||||
.map(|full| full.task_manager)
|
||||
.map_err(Into::into)
|
||||
.map(|full| full.task_manager)?;
|
||||
|
||||
sc_storage_monitor::StorageMonitorService::try_spawn(
|
||||
cli.storage_monitor,
|
||||
database_source,
|
||||
&task_manager.spawn_essential_handle(),
|
||||
)?;
|
||||
|
||||
Ok(task_manager)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user