func (store *Store) DeleteStreamRule(streamID, streamRuleID string) error {
	store.imutex.Lock()
	defer store.imutex.Unlock()
	rules, ok := store.streamRules[streamID]
	if !ok {
		return nil
	}
	delete(rules, streamRuleID)
	store.streamRules[streamID] = rules
	return nil
}
// DeleteStreamRule deletes a stream rule.
DeleteStreamRule deletes a stream rule.
// DeleteStreamRule deletes a stream rule .
func (store *Store) DeleteStreamRule(streamID, streamRuleID string) error {
	store.imutex.Lock()
	defer store.imutex.Unlock()
	rules, ok := store.streamRules[streamID]
	if !ok {
		return nil
	}
	delete(rules, streamRuleID)
	store.streamRules[streamID] = rules
	return nil
}
func ( store * Store ) DeleteStreamRule ( streamID , streamRuleID string ) error { store . imutex . Lock ( ) defer store . imutex . Unlock ( ) rules , ok := store . streamRules [ streamID ] if ! ok { return nil } delete ( rules , streamRuleID ) store . streamRules [ streamID ] = rules return nil }
DeleteStreamRule deletes a stream rule.
DeleteStreamRule deletes a stream rule .