Skip to content

Commit

Permalink
fix typo in the MessageAttributes method (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
taraspos authored and jprobinson committed Nov 5, 2019
1 parent 8e8dc8e commit f990600
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pubsub/aws/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ func (p *publisher) PublishRaw(ctx context.Context, key string, m []byte) error
return err
}

// WithMessaggeAttributes used to add SNS Message Attributes to the context
// WithMessageAttributes used to add SNS Message Attributes to the context
// for further usage in publishing messages to sns with provided attributes
func WithMessaggeAttributes(ctx context.Context, msgAttrs map[string]*sns.MessageAttributeValue) context.Context {
func WithMessageAttributes(ctx context.Context, msgAttrs map[string]*sns.MessageAttributeValue) context.Context {
return context.WithValue(ctx, msgAttrsKey, msgAttrs)
}

Expand Down

0 comments on commit f990600

Please sign in to comment.