Skip to content

Commit

Permalink
fix: index panic
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-ignacio committed Jan 10, 2024
1 parent b149024 commit 02b7f29
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gentei/membership/stale.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,10 @@ func refreshUserGuildEdgesWithPredicates(ctx context.Context, db *ent.Client, di
if err = eGroup.Wait(); err != nil {
return userTokensInvalid, userTokensValid, totalCount, err
}
if len(userIDs) == 0 {
log.Debug().Msg("no users to refresh, breaking out early")
break
}
after = userIDs[len(userIDs)-1]
log.Info().
Int64("count", processedCounter.Load()).
Expand Down

0 comments on commit 02b7f29

Please sign in to comment.