WithMsgID sets the message ID used for deduplication.
(id string)
| 601 | |
| 602 | // WithMsgID sets the message ID used for deduplication. |
| 603 | func WithMsgID(id string) PublishOpt { |
| 604 | return func(opts *pubOpts) error { |
| 605 | opts.id = id |
| 606 | return nil |
| 607 | } |
| 608 | } |
| 609 | |
| 610 | // WithMsgTTL sets per msg TTL. |
| 611 | // Requires [StreamConfig.AllowMsgTTL] to be enabled. |
no outgoing calls