Skip to content

Commit a960c5a

Browse files
committed
fixup! feat: update SendNBatch to fix deficiencies in error handling
update doc to say what returned int is
1 parent 0c8d59f commit a960c5a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

aws/sqs/sqs.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ func (s *SQS) SendBatch(ctx context.Context, queueURL string, bodies []string) e
335335
// SendNBatch sends any number of messages to a given SQS queue via a series of SendBatch calls.
336336
// If an error occurs on any or all messages, a SendNBatchError is returned that lets
337337
// the caller know the index of the message/s in bodies that failed.
338+
// Returns the number of API calls to SendBatch made.
338339
func (s *SQS) SendNBatch(ctx context.Context, queueURL string, bodies []string) (int, error) {
339340

340341
const (

0 commit comments

Comments
 (0)