Skip to content

Commit

Permalink
Revert "Replace 'tfslices.Chunks' with 'slices.Chunk' - route53."
Browse files Browse the repository at this point in the history
This reverts commit f722b5d.
  • Loading branch information
jar-b committed Sep 10, 2024
1 parent bfff87f commit d1b3b11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/service/route53/zone.go
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,8 @@ func deleteAllResourceRecordsFromHostedZone(ctx context.Context, conn *route53.C
const (
chunkSize = 100
)
for chunk := range slices.Chunk(resourceRecordSets, chunkSize) {
chunks := tfslices.Chunks(resourceRecordSets, chunkSize)
for _, chunk := range chunks {
changes := tfslices.ApplyToAll(chunk, func(v awstypes.ResourceRecordSet) awstypes.Change {
return awstypes.Change{
Action: awstypes.ChangeActionDelete,
Expand Down

0 comments on commit d1b3b11

Please sign in to comment.