// Get the count by storeID and group
Get the count by storeID and group
// Get the count by storeID and group
func (s *selectedStores) Get(id uint64, group string) uint64 {
	s.mu.RLock()
	defer s.mu.RUnlock()
	distribution, ok := s.getDistributionByGroupLocked(group)
	if !ok {
		return 0
	}
	count, ok := distribution[id]
	if !ok {
		return 0
	}
	return count
}
func ( s * selectedStores ) Get ( id uint64 , group string ) uint64 { s . mu . RLock ( ) defer s . mu . RUnlock ( ) distribution , ok := s . getDistributionByGroupLocked ( group ) if ! ok { return 0 } count , ok := distribution [ id ] if ! ok { return 0 } return count }
Get the count by storeID and group
Get the count by storeID and group