Skip to content

Commit 711944b

Browse files
Merge pull request #7008 from rabbitmq/mergify/bp/v3.11.x/pr-7002
2 parents 83c89b4 + 25f36c8 commit 711944b

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

deps/rabbitmq_jms_topic_exchange/BUILD.bazel

+8-2
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,31 @@ RUNTIME_DEPS = [
2424
"//deps/rabbit:erlang_app",
2525
]
2626

27+
EXTRA_APPS = [
28+
"mnesia",
29+
]
30+
2731
rabbitmq_app(
2832
app_description = APP_DESCRIPTION,
2933
app_module = APP_MODULE,
3034
app_name = APP_NAME,
3135
runtime_deps = RUNTIME_DEPS,
3236
deps = DEPS,
37+
extra_apps = EXTRA_APPS,
3338
)
3439

3540
xref()
3641

3742
plt(
3843
name = "base_plt",
39-
deps = DEPS,
44+
plt = "//:base_plt",
45+
apps = EXTRA_APPS,
46+
deps = DEPS + RUNTIME_DEPS,
4047
)
4148

4249
dialyze(
4350
dialyzer_opts = RABBITMQ_DIALYZER_OPTS,
4451
plt = ":base_plt",
45-
warnings_as_errors = False,
4652
)
4753

4854
broker_for_integration_suites()

deps/rabbitmq_jms_topic_exchange/src/rabbit_jms_topic_exchange.erl

+3-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ add_binding( Tx
136136
case {Tx, BindGen} of
137137
{transaction, {ok, BindFun}} ->
138138
add_binding_fun(XName, {{BindingKey, Dest}, BindFun});
139-
{none, {error, _}} ->
139+
{none, error} ->
140140
parsing_error(XName, Selector, Dest);
141141
_ ->
142142
ok
@@ -299,12 +299,14 @@ write_state_fun(XName, BFuns) ->
299299
%% E R R O R S
300300

301301
% state error
302+
-spec exchange_state_corrupt_error(#resource{}) -> no_return().
302303
exchange_state_corrupt_error(#resource{name = XName}) ->
303304
rabbit_misc:protocol_error( internal_error
304305
, "exchange named '~s' has no saved state or incorrect saved state"
305306
, [XName] ).
306307

307308
% parsing error
309+
-spec parsing_error(#resource{}, term(), #resource{}) -> no_return().
308310
parsing_error(#resource{name = XName}, S, #resource{name = DestName}) ->
309311
rabbit_misc:protocol_error( precondition_failed
310312
, "cannot parse selector '~p' binding destination '~s' to exchange '~s'"

deps/rabbitmq_jms_topic_exchange/src/sjx_evaluator.erl

+3-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@
3434

3535
-type expression() :: any().
3636

37-
-spec evaluate(expression(), table()) -> true | false | error.
38-
37+
-spec evaluate(expression(), table()) ->
38+
'true' | 'false' | 'error' | 'undefined' | number() |
39+
[ 'true' | 'false' | 'error' | 'undefined' | number() ].
3940

4041
evaluate( true, _Headers ) -> true;
4142
evaluate( false, _Headers ) -> false;

0 commit comments

Comments
 (0)