Skip to content

Commit

Permalink
Merge pull request #759 from dtest11/fix_doc_
Browse files Browse the repository at this point in the history
wrong note on ExpectLastMsgId && DeliverByStartSequencePolicy
  • Loading branch information
wallyqs committed Jun 23, 2021
2 parents 28c22bc + c18fffc commit 4b75fc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js.go
Expand Up @@ -695,7 +695,7 @@ func ExpectLastSequence(seq uint64) PubOpt {
})
}

// ExpectLastSequence sets the expected sequence in the response from the publish.
// ExpectLastMsgId sets the expected sequence in the response from the publish.
func ExpectLastMsgId(id string) PubOpt {
return pubOptFn(func(opts *pubOpts) error {
opts.lid = id
Expand Down Expand Up @@ -2199,7 +2199,7 @@ const (
// consumer is created.
DeliverNewPolicy

// DeliverByStartTimePolicy will deliver messages starting from a given
// DeliverByStartSequencePolicy will deliver messages starting from a given
// sequence.
DeliverByStartSequencePolicy

Expand Down

0 comments on commit 4b75fc5

Please sign in to comment.