From 0cf73c2aaba1eaee5e327695c2e929831ea72897 Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Fri, 1 Apr 2022 16:08:24 +0200 Subject: [PATCH] fixed wrong batch size calc --- utils/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/utils.go b/utils/utils.go index 10a01bc..1882013 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -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)