Skip to content

Commit

Permalink
Merge branch 'main' into better-sf-wg-error
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex authored Mar 11, 2024
2 parents 9bae068 + f7a823f commit 5d81dcf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flow/shared/telemetry/sns_message_sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ func (s *SNSMessageSenderImpl) SendMessage(ctx context.Context, subject string,
var messageSubjectBuilder strings.Builder
maxSubjectSize := 99
for currentLength, char := range subject {
if currentLength > maxSubjectSize {
break
}
if unicode.IsPrint(char) {
messageSubjectBuilder.WriteRune(char)
} else {
messageSubjectBuilder.WriteRune(' ')
}
if currentLength > maxSubjectSize {
break
}
}
publish, err := s.client.Publish(ctx, &sns.PublishInput{
Message: aws.String(body),
Expand Down

0 comments on commit 5d81dcf

Please sign in to comment.