Skip to content

Commit

Permalink
Test feature flags; to remove
Browse files Browse the repository at this point in the history
  • Loading branch information
dumbbell committed Nov 4, 2024
1 parent 22835c7 commit 34e7b18
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions deps/rabbit/src/rabbit_core_ff.erl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,28 @@

-module(rabbit_core_ff).

-export([fail/1]).

-rabbit_feature_flag(
{a_stable_ff,
#{desc => "Stable feature flag",
stability => stable,
callbacks => #{enable => {?MODULE, fail}}}}).

-rabbit_feature_flag(
{exp_sup_ff,
#{desc => "Supported experimental feature flag",
stability => experimental,
experiment_level => supported,
callbacks => #{enable => {?MODULE, fail}}}}).

-rabbit_feature_flag(
{exp_unsup_ff,
#{desc => "Unsupported experimental feature flag",
stability => experimental,
experiment_level => unsupported,
callbacks => #{enable => {?MODULE, fail}}}}).

-rabbit_feature_flag(
{classic_mirrored_queue_version,
#{desc => "Support setting version for classic mirrored queues",
Expand Down Expand Up @@ -205,3 +227,7 @@
stability => stable,
depends_on => [message_containers]
}}).

fail(Args) ->
timer:sleep(2000),
throw({pouet, Args}).

0 comments on commit 34e7b18

Please sign in to comment.