Skip to content

Commit

Permalink
Update packages/relayer/cli/cli.go
Browse files Browse the repository at this point in the history
Co-authored-by: David <104078303+davidtaikocha@users.noreply.github.com>
  • Loading branch information
cyberhorsey and davidtaikocha committed Nov 15, 2022
1 parent 1308298 commit 3c1c78c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/relayer/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func makeIndexers(layer Layer, db *gorm.DB) ([]*indexer.Service, func(), error)
}

blockBatchSize, err := strconv.Atoi(os.Getenv("BLOCK_BATCH_SIZE"))
if err != nil || blockBatchSize == 0 {
if err != nil || blockBatchSize <= 0 {
blockBatchSize = defaultBlockBatchSize
}

Expand Down

0 comments on commit 3c1c78c

Please sign in to comment.