Skip to content

Commit afd1c63

Browse files
committed
fix observer_builder
1 parent b217dd0 commit afd1c63

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmd/observer/node_builder/observer_builder.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ import (
110110
"github.com/onflow/flow-go/state/protocol/events/gadgets"
111111
"github.com/onflow/flow-go/storage"
112112
bstorage "github.com/onflow/flow-go/storage/badger"
113-
"github.com/onflow/flow-go/storage/operation/badgerimpl"
114113
pstorage "github.com/onflow/flow-go/storage/pebble"
115114
"github.com/onflow/flow-go/storage/store"
116115
"github.com/onflow/flow-go/utils/grpcutils"
@@ -1347,7 +1346,7 @@ func (builder *ObserverServiceBuilder) BuildExecutionSyncComponents() *ObserverS
13471346

13481347
builder.Module("indexed block height consumer progress", func(node *cmd.NodeConfig) error {
13491348
// Note: progress is stored in the MAIN db since that is where indexed execution data is stored.
1350-
indexedBlockHeight = store.NewConsumerProgress(badgerimpl.ToDB(builder.DB), module.ConsumeProgressExecutionDataIndexerBlockHeight)
1349+
indexedBlockHeight = store.NewConsumerProgress(builder.ProtocolDB, module.ConsumeProgressExecutionDataIndexerBlockHeight)
13511350
return nil
13521351
}).Module("transaction results storage", func(node *cmd.NodeConfig) error {
13531352
builder.lightTransactionResults = store.NewLightTransactionResults(node.Metrics.Cache, node.ProtocolDB, bstorage.DefaultCacheSize)

0 commit comments

Comments
 (0)