|
@ -54,3 +54,10 @@ func (p *LocalPartitionSubscribers) IsEmpty() bool { |
|
|
|
|
|
|
|
|
return len(p.Subscribers) == 0 |
|
|
return len(p.Subscribers) == 0 |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func (p *LocalPartitionSubscribers) Size() int { |
|
|
|
|
|
p.SubscribersLock.RLock() |
|
|
|
|
|
defer p.SubscribersLock.RUnlock() |
|
|
|
|
|
|
|
|
|
|
|
return len(p.Subscribers) |
|
|
|
|
|
} |