Merge pull request #3808 from nats-io/jarema/fix-not-assigning-sig-sub

Assign signal subscription to consumer when created
This commit is contained in:
Derek Collison
2023-01-24 07:12:53 -08:00
committed by GitHub

View File

@@ -4347,7 +4347,9 @@ func (o *consumer) signalSub() *subscription {
if subject == _EMPTY_ {
subject = fwcs
}
return &subscription{subject: []byte(subject), icb: o.processStreamSignal}
sub := &subscription{subject: []byte(subject), icb: o.processStreamSignal}
o.sigSub = sub
return sub
}
// This is what will be called when our parent stream wants to kick us regarding a new message.