Skip to content

Commit d8add90

Browse files
dcorbachomergify[bot]
authored andcommitted
Shovel local bugfix: skip src_queue in endpoint info during exchange routing
(cherry picked from commit ef157e5)
1 parent 00dae70 commit d8add90

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
@@ -256,12 +256,10 @@ source_protocol(_State) ->
256256
dest_protocol(_State) ->
257257
local.
258258

259-
source_endpoint(#{source := #{queue := Queue,
260-
exchange := SrcX,
259+
source_endpoint(#{source := #{exchange := SrcX,
261260
routing_key := SrcXKey}}) ->
262261
[{src_exchange, SrcX},
263-
{src_exchange_key, SrcXKey},
264-
{src_queue, Queue}];
262+
{src_exchange_key, SrcXKey}];
265263
source_endpoint(#{source := #{queue := Queue}}) ->
266264
[{src_queue, Queue}];
267265
source_endpoint(_Config) ->

0 commit comments

Comments
 (0)