mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-16 19:14:41 -07:00
@@ -1499,7 +1499,7 @@ func (mset *stream) setupMirrorConsumer() error {
|
||||
respCh := make(chan *JSApiConsumerCreateResponse, 1)
|
||||
reply := infoReplySubject()
|
||||
crSub, _ := mset.subscribeInternal(reply, func(sub *subscription, c *client, subject, reply string, rmsg []byte) {
|
||||
mset.unsubscribe(sub)
|
||||
mset.unsubscribeUnlocked(sub)
|
||||
_, msg := c.msgParts(rmsg)
|
||||
|
||||
var ccr JSApiConsumerCreateResponse
|
||||
@@ -1569,7 +1569,7 @@ func (mset *stream) setupMirrorConsumer() error {
|
||||
}
|
||||
mset.setMirrorErr(ccr.Error)
|
||||
case <-time.After(10 * time.Second):
|
||||
mset.unsubscribe(crSub)
|
||||
mset.unsubscribeUnlocked(crSub)
|
||||
return
|
||||
}
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user