Skip to content

Commit

Permalink
force reindex
Browse files Browse the repository at this point in the history
  • Loading branch information
altergui committed Sep 9, 2024
1 parent 782f147 commit 7d4280f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vochain/indexer/indexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func (idx *Indexer) startDB() error {
goose.SetLogger(log.GooseLogger())
goose.SetBaseFS(embedMigrations)

if gooseMigrationsPending(idx.readWriteDB, "migrations") {
if true || gooseMigrationsPending(idx.readWriteDB, "migrations") {
log.Info("indexer db needs migration, scheduling a reindex after sync")
defer func() { go idx.ReindexBlocks(false) }()
}
Expand Down

0 comments on commit 7d4280f

Please sign in to comment.