Skip to content

Commit

Permalink
fix: dynamodb registry when statements over 25
Browse files Browse the repository at this point in the history
  • Loading branch information
danie1sullivan committed Nov 7, 2023
1 parent 9f7167f commit 4a8dbc5
Show file tree
Hide file tree
Showing 2 changed files with 598 additions and 1 deletion.
2 changes: 1 addition & 1 deletion registry/dynamodb.go
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ func (im *DynamoDBRegistry) executeStatements(ctx context.Context, statements []
for len(statements) > 0 {
var chunk []*dynamodb.BatchStatementRequest
if len(statements) > 25 {
chunk = chunk[:25]
chunk = statements[:25]
statements = statements[25:]
} else {
chunk = statements
Expand Down
Loading

0 comments on commit 4a8dbc5

Please sign in to comment.