Skip to content

Commit 869d8dc

Browse files
committed
fix lint
1 parent 4d6dd12 commit 869d8dc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/util/cmd/read-protocol-state/cmd/blocks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ func runE(*cobra.Command, []string) error {
152152
flagDBs := common.ReadDBFlags()
153153
return common.WithStorage(flagDBs, func(db storage.DB) error {
154154
storages := common.InitStorages(db)
155-
state, err := common.InitProtocolState(lockManager, db, storages)
155+
state, err := common.OpenProtocolState(lockManager, db, storages)
156156

157157
if err != nil {
158158
log.Fatal().Err(err).Msg("could not init protocol state")

cmd/util/cmd/read-protocol-state/cmd/snapshot.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func runSnapshotE(*cobra.Command, []string) error {
5353
lockManager := storage.MakeSingletonLockManager()
5454
return common.WithStorage(common.ReadDBFlags(), func(db storage.DB) error {
5555
storages := common.InitStorages(db)
56-
state, err := common.InitProtocolState(lockManager, db, storages)
56+
state, err := common.OpenProtocolState(lockManager, db, storages)
5757
if err != nil {
5858
return fmt.Errorf("could not init protocol state")
5959
}

0 commit comments

Comments
 (0)