From 211562ddc98c56d01aa264b4673f27ab1efeb5c0 Mon Sep 17 00:00:00 2001 From: scorpioborn <97235353+scorpioborn@users.noreply.github.com> Date: Wed, 9 Aug 2023 14:41:21 +0300 Subject: [PATCH] fix: replace leveldb deprecated method --- cmd/sged/cmd/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/sged/cmd/root.go b/cmd/sged/cmd/root.go index 32c5f64d..3767e21c 100644 --- a/cmd/sged/cmd/root.go +++ b/cmd/sged/cmd/root.go @@ -188,7 +188,7 @@ func newApp( } snapshotDir := filepath.Join(cast.ToString(appOpts.Get(flags.FlagHome)), "data", "snapshots") - snapshotDB, err := sdk.NewLevelDB("metadata", snapshotDir) + snapshotDB, err := dbm.NewGoLevelDB("metadata", snapshotDir) if err != nil { panic(err) }