File tree Expand file tree Collapse file tree
src/lavinmq/amqp/argument Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ module LavinMQ::AMQP
4545 def route (msg : BytesMessage , reason) # ameba:disable Metrics/CyclomaticComplexity
4646 # No dead letter exchange => nothing to do
4747 return unless dlx = (msg.dlx || dlx())
48- ex = @vhost .exchanges[dlx.to_s]? || return
48+ ex = @vhost .exchanges[dlx.to_s]?.as?( AMQP :: Exchange ) || return
4949
5050 dlrk = msg.dlrk || dlrk()
5151
@@ -67,7 +67,7 @@ module LavinMQ::AMQP
6767 # cycle detection and to not create a lot of faulty stats.
6868 # This means that no delay, consistent hash check or such is performed
6969 # if the dead letter exchange has any of these features enabled.
70- queues = Set (LavinMQ ::Queue ).new
70+ queues = Set (AMQP ::Queue ).new
7171 ex.find_queues(routing_rk, routing_headers, queues)
7272 return if queues.empty?
7373
You can’t perform that action at this time.
0 commit comments