Skip to content

Commit

Permalink
Fix panic on error deleting messages
Browse files Browse the repository at this point in the history
  • Loading branch information
natenho committed Sep 4, 2023
1 parent 82f86f9 commit 5cebacf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ func deleteSQSMessages(ctx context.Context, batch []types.Message, sqsClient *sq

if err != nil {
log.Printf("Error deleting message: %v", err)
return
}

log.Printf("Deleted %d Failed %d", len(result.Successful), len(result.Failed))
Expand Down

0 comments on commit 5cebacf

Please sign in to comment.