Skip to content

Commit

Permalink
Merge branch 'master' of github.com:baking-bad/bcdhub
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kus committed Jan 27, 2022
2 parents 4c9dcbc + 0ac6b87 commit 673648d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/migration/migrations/set_search_entrypoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func (m *FixEntrypointSearch) Do(ctx *config.Context) error {
return err
}

for m.lastID == 0 || len(operations) == 1000 {
for m.lastID == 0 || len(operations) == 100 {
fmt.Printf("last id = %d\r", m.lastID)
operations, err = m.getOperations(ctx.StorageDB.DB)
if err != nil {
Expand All @@ -54,7 +54,7 @@ func (m *FixEntrypointSearch) getOperations(db *pg.DB) (resp []operation.Operati
if m.lastID > 0 {
query.Where("operation.id > ?", m.lastID)
}
err = query.Limit(1000).Select(&resp)
err = query.Limit(100).Select(&resp)
return
}

Expand Down

0 comments on commit 673648d

Please sign in to comment.