fixed wrong batch size calc
This commit is contained in:
@@ -732,7 +732,7 @@ func PlayerFromSteam(players []*ent.Player, db *ent.Client, apiKey string, rl *r
|
||||
idsToUpdate = append(idsToUpdate, updatePlayer.ID)
|
||||
}
|
||||
|
||||
batches := int(math.Round((float64(len(players)) / 100) + 0.5))
|
||||
batches := int(math.Round((float64(len(players)) / 1000) + 0.5))
|
||||
|
||||
if rl != nil {
|
||||
err := rl.WaitN(context.Background(), batches)
|
||||
|
Reference in New Issue
Block a user