File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 25
25
}).
26
26
27
27
-define (SHOVEL_USER , <<" rmq-shovel" >>).
28
-
28
+ - define ( SHOVEL_COMPONENT , << " shovel " >>).
29
29
-define (DEFAULT_PREFETCH , 1000 ).
30
30
-define (DEFAULT_ACK_MODE , on_confirm ).
31
31
-define (DEFAULT_RECONNECT_DELAY , 5 ).
Original file line number Diff line number Diff line change 17
17
-include_lib (" kernel/include/logger.hrl" ).
18
18
-include_lib (" logging.hrl" ).
19
19
-include_lib (" rabbit_common/include/rabbit.hrl" ).
20
+ -include (" rabbit_shovel.hrl" ).
20
21
-define (SUPERVISOR , ? MODULE ).
21
22
22
23
start_link () ->
@@ -29,7 +30,7 @@ start_link() ->
29
30
OpMode = rabbit_shovel_operating_mode :operating_mode (),
30
31
Shovels = case OpMode of
31
32
standard ->
32
- rabbit_runtime_parameters :list_component (<< " shovel " >> );
33
+ rabbit_runtime_parameters :list_component (? SHOVEL_COMPONENT );
33
34
_Other ->
34
35
% % when operating in a non-standard mode, do not start any shovels
35
36
[]
@@ -117,7 +118,7 @@ cleanup_specs() ->
117
118
[id ({proplists :get_value (vhost , S ),
118
119
proplists :get_value (name , S )})
119
120
|| S <- rabbit_runtime_parameters :list_component (
120
- << " shovel " >> )]),
121
+ ? SHOVEL_COMPONENT )]),
121
122
% % Delete any supervisor children that do not have their respective runtime parameters in the database.
122
123
lists :foreach (
123
124
fun
You can’t perform that action at this time.
0 commit comments