mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-13 23:47:44 +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 {
|
||||
logger.Error("failed to enqueue account batch", zap.Error(err))
|
||||
}
|
||||
}(i * batchSize)
|
||||
}(i)
|
||||
}
|
||||
wg.Wait()
|
||||
|
||||
|
|
Loading…
Reference in a new issue