forked from TrueCloudLab/frostfs-node
[#1714] lens: Add open*COMPONENT*
funcs
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
01d7c007aa
commit
fa18100489
10 changed files with 58 additions and 60 deletions
|
@ -21,9 +21,7 @@ func init() {
|
|||
}
|
||||
|
||||
func inspectFunc(cmd *cobra.Command, _ []string) {
|
||||
db, err := writecache.OpenDB(vPath, true)
|
||||
common.ExitOnErr(cmd, common.Errf("could not open write-cache db: %w", err))
|
||||
|
||||
db := openWC(cmd)
|
||||
defer db.Close()
|
||||
|
||||
data, err := writecache.Get(db, []byte(vAddress))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue