fixed wrong batch size calc

This commit is contained in:
2022-04-01 16:08:24 +02:00
parent 8a3385bdc4
commit 0cf73c2aab

View File

@@ -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)