Skip to content

Commit 8bd6f6a

Browse files
committed
fix: Remove unused CUSTOM_RULE_START import and reference
The constant CUSTOM_RULE_START was removed from sentry.models.dynamicsampling but the import and usage in dynamic_sampling/rules/utils.py was not cleaned up, causing a runtime ImportError.
1 parent 8af47f1 commit 8bd6f6a

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

  • src/sentry/dynamic_sampling/rules

src/sentry/dynamic_sampling/rules/utils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from django.conf import settings
77
from redis import StrictRedis
88

9-
from sentry.models.dynamicsampling import CUSTOM_RULE_START
109
from sentry.relay.types import RuleCondition
1110
from sentry.utils import redis
1211

@@ -73,7 +72,6 @@ class RuleType(Enum):
7372
RuleType.MINIMUM_SAMPLE_RATE_RULE: 1006,
7473
RuleType.BOOST_LOW_VOLUME_TRANSACTIONS_RULE: 1400,
7574
RuleType.BOOST_LATEST_RELEASES_RULE: 1500,
76-
RuleType.CUSTOM_RULE: CUSTOM_RULE_START,
7775
}
7876
REVERSE_RESERVED_IDS = {value: key for key, value in RESERVED_IDS.items()}
7977

0 commit comments

Comments
 (0)