Skip to content

Commit

Permalink
chore: better name
Browse files Browse the repository at this point in the history
  • Loading branch information
Wondertan authored and vyzo committed Jan 23, 2022
1 parent fcbbfd8 commit fed393e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pubsub.go
Expand Up @@ -1160,8 +1160,8 @@ type TopicOptions struct{}

type TopicOpt func(t *Topic) error

// WithMsgIdFunction sets custom MsgIdFunction for a Topic, enabling topics to have own msg id generation rules.
func WithMsgIdFunction(msgId MsgIdFunction) TopicOpt {
// WithTopicMessageIdFn sets custom MsgIdFunction for a Topic, enabling topics to have own msg id generation rules.
func WithTopicMessageIdFn(msgId MsgIdFunction) TopicOpt {
return func(t *Topic) error {
t.p.idGen.Set(t.topic, msgId)
return nil
Expand Down

0 comments on commit fed393e

Please sign in to comment.