Skip to content

Commit

Permalink
repain broken amqp specs
Browse files Browse the repository at this point in the history
  • Loading branch information
kickster97 committed Nov 4, 2024
1 parent 5732543 commit eab1b3b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/lavinmq/queue_factory.cr
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ module LavinMQ
end

private def self.make_durable(vhost, frame)
raise Error::PreconditionFailed.new("Not allowed to use that prefix") if PrefixValidation.invalid?(frame.queue_name) && !mqtt_session?(frame)
if prio_queue? frame
AMQP::DurablePriorityQueue.new(vhost, frame.queue_name, frame.exclusive, frame.auto_delete, frame.arguments)
elsif stream_queue? frame
Expand All @@ -37,7 +36,6 @@ module LavinMQ
end

private def self.make_queue(vhost, frame)
raise Error::PreconditionFailed.new("Not allowed to use that prefix") if PrefixValidation.invalid?(frame.queue_name) && !mqtt_session?(frame)
if prio_queue? frame
AMQP::PriorityQueue.new(vhost, frame.queue_name, frame.exclusive, frame.auto_delete, frame.arguments)
elsif stream_queue? frame
Expand Down

0 comments on commit eab1b3b

Please sign in to comment.