mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Should not ask match to acquire lock already held
Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
@@ -262,7 +262,7 @@ func (s *Sublist) chkForInsertNotification(subject string, isLiteral bool) {
|
||||
// We are not a literal, so we may match any subject that we want.
|
||||
// Note we could be smarter here and try to make the list smaller, but probably not worth it TBH.
|
||||
for target, chs := range s.notify.insert {
|
||||
r := s.Match(target)
|
||||
r := s.matchNoLock(target)
|
||||
if len(r.psubs)+len(r.qsubs) > 0 {
|
||||
for _, ch := range chs {
|
||||
sendNotification(ch, true)
|
||||
|
||||
Reference in New Issue
Block a user