Skip to content

Commit 5c5ae91

Browse files
committed
init redis
1 parent a50b9b6 commit 5c5ae91

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

cmd/committer.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ func RunCommitter(cmd *cobra.Command, args []string) {
3030
}()
3131

3232
committer.Init()
33+
committer.InitReorg()
3334

3435
go committer.RunReorgValidator()
3536
committer.CommitStreaming()

internal/committer/reorg.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ import (
1111
"github.com/thirdweb-dev/indexer/internal/metrics"
1212
)
1313

14+
func InitReorg() {
15+
libs.InitRedis()
16+
}
17+
1418
func RunReorgValidator() {
1519
for {
1620
startBlock, endBlock, err := getReorgRange()

0 commit comments

Comments
 (0)