Skip to content

Commit

Permalink
propagate context to upsertConsumer
Browse files Browse the repository at this point in the history
  • Loading branch information
HeavyHorst committed Oct 5, 2023
1 parent ff131ad commit 27fd908
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js.go
Expand Up @@ -1727,7 +1727,7 @@ func (js *js) subscribe(subj, queue string, cb MsgHandler, ch chan *Msg, isSync,
} else if consName == "" {
consName = getHash(nuid.Next())
}
info, err := js.upsertConsumer(stream, consName, ccreq.Config)
info, err := js.upsertConsumer(stream, consName, ccreq.Config, Context(ctx))
if err != nil {
var apiErr *APIError
if ok := errors.As(err, &apiErr); !ok {
Expand Down

0 comments on commit 27fd908

Please sign in to comment.