calculate batch size properly

This commit is contained in:
Andre Medeiros 2022-06-04 10:23:45 -04:00
parent b23a158471
commit 084407a5f2

View file

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