mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-25 13:17:42 +00:00
calculate batch size properly
This commit is contained in:
parent
b23a158471
commit
084407a5f2
1 changed files with 1 additions and 1 deletions
|
@ -480,7 +480,7 @@ func enqueueAccounts(ctx context.Context, logger *zap.Logger, statsd *statsd.Cli
|
||||||
if err = queue.Publish(batchIds...); err != nil {
|
if err = queue.Publish(batchIds...); err != nil {
|
||||||
logger.Error("failed to enqueue account batch", zap.Error(err))
|
logger.Error("failed to enqueue account batch", zap.Error(err))
|
||||||
}
|
}
|
||||||
}(i * batchSize)
|
}(i)
|
||||||
}
|
}
|
||||||
wg.Wait()
|
wg.Wait()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue