mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-16 03:00:42 -07:00
Merge pull request #3118 from nats-io/fix_3117
[FIXED] JetStream: panic processing cluster consumer create
This commit is contained in:
@@ -2410,10 +2410,13 @@ func (wq *waitQueue) isFull() bool {
|
||||
}
|
||||
|
||||
func (wq *waitQueue) isEmpty() bool {
|
||||
return wq.n == 0
|
||||
return wq.len() == 0
|
||||
}
|
||||
|
||||
func (wq *waitQueue) len() int {
|
||||
if wq == nil {
|
||||
return 0
|
||||
}
|
||||
return wq.n
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user