mirror of
https://github.com/weaveworks/scope.git
synced 2026-04-04 01:37:10 +00:00
Wait using the correct batch size
Otherwise waits tend to bust the rate-limiter batch size and it doesn't wait at all.
This commit is contained in:
@@ -415,7 +415,7 @@ func (sc *scanner) deleteFromDynamoDB(batch []map[string]*dynamodb.AttributeValu
|
||||
}
|
||||
if err != nil {
|
||||
if throttled(err) {
|
||||
sc.writeLimiter.WaitN(context.Background(), len(batch))
|
||||
sc.writeLimiter.WaitN(context.Background(), numToSend)
|
||||
// Back round the loop without taking anything away from the batch
|
||||
continue
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user