feat(queue): improve hints for macro clauses

This commit is contained in:
Ilya Averyanov 2024-06-20 15:17:08 +03:00
parent 6da10036dc
commit a92460d38f
1 changed files with 10 additions and 5 deletions

View File

@ -12,28 +12,33 @@
%% agent from BSL app %% agent from BSL app
-ifdef(TEST). -ifdef(TEST).
-define(shared_subs_agent, emqx_ds_shared_sub_agent). -define(shared_subs_agent, emqx_ds_shared_sub_agent).
%% clause of -ifdef(TEST).
-else. -else.
%% Till full implementation we need to dispach to the null agent. %% Till full implementation we need to dispach to the null agent.
%% It will report "not implemented" error for attempts to use shared subscriptions. %% It will report "not implemented" error for attempts to use shared subscriptions.
-define(shared_subs_agent, emqx_persistent_session_ds_shared_subs_null_agent). -define(shared_subs_agent, emqx_persistent_session_ds_shared_subs_null_agent).
%% -ifdef(TEST).
%% end of -ifdef(TEST).
-endif. -endif.
%% -if(?EMQX_RELEASE_EDITION == ee). %% clause of -if(?EMQX_RELEASE_EDITION == ee).
-else. -else.
-define(shared_subs_agent, emqx_persistent_session_ds_shared_subs_null_agent). -define(shared_subs_agent, emqx_persistent_session_ds_shared_subs_null_agent).
%% -if(?EMQX_RELEASE_EDITION == ee). %% end of -if(?EMQX_RELEASE_EDITION == ee).
-endif. -endif.
%% -ifdef(EMQX_RELEASE_EDITION). %% clause of -ifdef(EMQX_RELEASE_EDITION).
-else. -else.
-define(shared_subs_agent, emqx_persistent_session_ds_shared_subs_null_agent). -define(shared_subs_agent, emqx_persistent_session_ds_shared_subs_null_agent).
%% -ifdef(EMQX_RELEASE_EDITION). %% end of -ifdef(EMQX_RELEASE_EDITION).
-endif. -endif.
-endif. -endif.