Fix `export` attribute for rabbitmq_amqp_client
Trigger a 4.1.x alpha release build / trigger_alpha_build (push) Has been cancelled Details
Test (make) / Build and Xref (1.17, 26) (push) Has been cancelled Details
Test (make) / Build and Xref (1.17, 27) (push) Has been cancelled Details
Test (make) / Test (1.17, 27, khepri) (push) Has been cancelled Details
Test (make) / Test (1.17, 27, mnesia) (push) Has been cancelled Details
Test (make) / Test mixed clusters (1.17, 27, khepri) (push) Has been cancelled Details
Test (make) / Test mixed clusters (1.17, 27, mnesia) (push) Has been cancelled Details
Test (make) / Type check (1.17, 27) (push) Has been cancelled Details

The correct format is:
```
-export(Functions).
```

ELP detected this malformed syntax.

Interestingly, prior to this commit, the functions were still exported:
```
rabbitmq_amqp_address:module_info(exports).
[{exchange,1},
 {exchange,2},
 {queue,1},
 {module_info,0},
 {module_info,1}]
```

(cherry picked from commit 5c5026d977)
This commit is contained in:
David Ansari 2025-06-12 12:24:39 +02:00
parent 445c698ded
commit 973e865b0b
1 changed files with 18 additions and 18 deletions

View File

@ -11,27 +11,27 @@
-include("rabbitmq_amqp_client.hrl").
-include_lib("amqp10_common/include/amqp10_framing.hrl").
-export[
%% link pair operations
attach_management_link_pair_sync/2,
detach_management_link_pair_sync/1,
-export([
%% link pair operations
attach_management_link_pair_sync/2,
detach_management_link_pair_sync/1,
%% queue operations
get_queue/2,
declare_queue/3,
bind_queue/5,
unbind_queue/5,
purge_queue/2,
delete_queue/2,
%% queue operations
get_queue/2,
declare_queue/3,
bind_queue/5,
unbind_queue/5,
purge_queue/2,
delete_queue/2,
%% exchange operations
declare_exchange/3,
bind_exchange/5,
unbind_exchange/5,
delete_exchange/2,
%% exchange operations
declare_exchange/3,
bind_exchange/5,
unbind_exchange/5,
delete_exchange/2,
set_token/2
].
set_token/2
]).
-define(TIMEOUT, 30_000).
-define(MANAGEMENT_NODE_ADDRESS, <<"/management">>).