mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Fix assigning signal subscription to consumer
Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user