Skip to content

Commit

Permalink
chore: small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iamKunalGupta committed Mar 6, 2024
1 parent d011d40 commit bc2f5da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flow/shared/telemetry/sns_message_sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (s *SNSMessageSenderImpl) SendMessage(ctx context.Context, subject string,
messageSubject := strings.TrimFunc(subject, func(r rune) bool {
return !unicode.IsPrint(r)
})
if len(messageSubject) > 100 {
if len(messageSubject) >= 100 {
messageSubject = messageSubject[:99]
}
publish, err := s.client.Publish(ctx, &sns.PublishInput{
Expand Down

0 comments on commit bc2f5da

Please sign in to comment.