Skip to content

Commit 890ef82

Browse files
committed
Shovel local bugfix: skip src_queue in endpoint info during exchange routing
1 parent 4a64d4f commit 890ef82

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

deps/rabbitmq_shovel/src/rabbit_local_shovel.erl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,12 +244,10 @@ source_protocol(_State) ->
244244
dest_protocol(_State) ->
245245
local.
246246

247-
source_endpoint(#{source := #{queue := Queue,
248-
exchange := SrcX,
247+
source_endpoint(#{source := #{exchange := SrcX,
249248
routing_key := SrcXKey}}) ->
250249
[{src_exchange, SrcX},
251-
{src_exchange_key, SrcXKey},
252-
{src_queue, Queue}];
250+
{src_exchange_key, SrcXKey}];
253251
source_endpoint(#{source := #{queue := Queue}}) ->
254252
[{src_queue, Queue}];
255253
source_endpoint(_Config) ->

0 commit comments

Comments
 (0)