code: func (gs *genericStore) getChannelLimits(channel string) *ChannelLimits {
  	r := gs.sublist.Match(channel)
  	if len(r) == 0 {
  		// If there is no match, that means we need to use the global limits.
  		return &gs.limits.ChannelLimits
  	}
  	// If there is a match, use the limits from the last element because
  	// we know that the returned array is ordered from widest to narrowest,
  	// and the only literal that there is would be the channel we are
  	// looking up.
  	return r[len(r)-1].(*ChannelLimits)
  }
docs: // Returns the appropriate limits for this channel based on inheritance.
  // The channel is assumed to be a literal, and the store lock held on entry.