Skip to content

Commit

Permalink
Merge pull request #12978 from rabbitmq/fix-function-naming-in-featur…
Browse files Browse the repository at this point in the history
…e-flag-controller

rabbit_feature_flags: Fix function name in the controller
  • Loading branch information
dumbbell authored Dec 19, 2024
2 parents 55459bc + dbec429 commit d8ca61c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deps/rabbit/src/rabbit_ff_controller.erl
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ virtually_reset_inventory(
fun(FeatureName, _FeatureState) ->
FeatureProps = maps:get(
FeatureName, FeatureFlags),
state_after_virtual_state(
state_after_virtual_reset(
FeatureName, FeatureProps)
end, FeatureStates0),
StatesPerNode1 = maps:map(
Expand All @@ -596,14 +596,14 @@ virtually_reset_inventory(
false = _NodeAsVirgin) ->
Inventory.
state_after_virtual_state(_FeatureName, FeatureProps)
state_after_virtual_reset(_FeatureName, FeatureProps)
when ?IS_FEATURE_FLAG(FeatureProps) ->
Stability = rabbit_feature_flags:get_stability(FeatureProps),
case Stability of
required -> true;
_ -> false
end;
state_after_virtual_state(FeatureName, FeatureProps)
state_after_virtual_reset(FeatureName, FeatureProps)
when ?IS_DEPRECATION(FeatureProps) ->
not rabbit_deprecated_features:should_be_permitted(
FeatureName, FeatureProps).
Expand Down

0 comments on commit d8ca61c

Please sign in to comment.