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.
This commit is contained in:
Nazar Mokrynskyi authored and GitHub committed 2024-01-10 12:56:44 +01:00
1 parent a56ad80a38
commit af2e30e383
6 files changed
+54 -49

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
title: Improve storage monitor API
doc:
- audience: Node Dev
description: |
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.
crates:
- name: sc-storage-monitor