mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-17 11:24:44 -07:00
Merge branch 'main' into dev
This commit is contained in:
@@ -2337,8 +2337,11 @@ func (c *client) processLeafSub(argo []byte) (err error) {
|
||||
spoke := c.isSpokeLeafNode()
|
||||
c.mu.Unlock()
|
||||
|
||||
if err := c.addShadowSubscriptions(acc, sub); err != nil {
|
||||
c.Errorf(err.Error())
|
||||
// Only add in shadow subs if a new sub or qsub.
|
||||
if osub == nil {
|
||||
if err := c.addShadowSubscriptions(acc, sub); err != nil {
|
||||
c.Errorf(err.Error())
|
||||
}
|
||||
}
|
||||
|
||||
// If we are not solicited, treat leaf node subscriptions similar to a
|
||||
|
||||
Reference in New Issue
Block a user