Skip to content

Commit

Permalink
move duplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhorsey committed Mar 2, 2024
1 parent ec0ceee commit 42daf90
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/relayer/indexer/detect_and_handle_reorg.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ import (
)

func (i *Indexer) detectAndHandleReorg(ctx context.Context, eventType string, msgHash string) error {
// dont check on crawling past blocks, it will be a secondary indexer.
// we expect to see duplicates in this mode.
if i.watchMode == CrawlPastBlocks {
return nil
}

e, err := i.eventRepo.FirstByEventAndMsgHash(ctx, eventType, msgHash)
if err != nil {
return errors.Wrap(err, "svc.eventRepo.FirstByMsgHash")
Expand Down

0 comments on commit 42daf90

Please sign in to comment.