Improve storage monitor API (#2899)
This removes the need to unnecessarily provide a very specific data structure `DatabaseSource` and removes huge `sc-client-db` dependency from storage monitor. It is now possible to use storage monitor with any path. P.S. I still strongly dislike that it pulls `clap` dependency for such a small feature, but many other crates do as well, so nothing special here.
parent
a56ad80a
Showing
- Cargo.lock 0 additions, 1 deletionCargo.lock
- polkadot/cli/src/command.rs 7 additions, 5 deletionspolkadot/cli/src/command.rs
- prdoc/pr_2899.prdoc 10 additions, 0 deletionsprdoc/pr_2899.prdoc
- substrate/bin/node/cli/src/service.rs 10 additions, 8 deletionssubstrate/bin/node/cli/src/service.rs
- substrate/client/storage-monitor/Cargo.toml 1 addition, 2 deletionssubstrate/client/storage-monitor/Cargo.toml
- substrate/client/storage-monitor/src/lib.rs 27 additions, 34 deletionssubstrate/client/storage-monitor/src/lib.rs
Please register or sign in to comment