Skip to content

Commit

Permalink
rabbit_feature_flags: Fix function name in the controller
Browse files Browse the repository at this point in the history
[Why]
`state_after_virtual_state()` meant nothing.

`state_after_virtual_reset()` was the name I had in mind.
  • Loading branch information
dumbbell committed Dec 19, 2024
1 parent 55459bc commit dbec429
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 dbec429

Please sign in to comment.