diff --git a/src/lavinmq/amqp/queue/stream_queue_message_store.cr b/src/lavinmq/amqp/queue/stream_queue_message_store.cr index ad640f1100..8f7d9d3ade 100644 --- a/src/lavinmq/amqp/queue/stream_queue_message_store.cr +++ b/src/lavinmq/amqp/queue/stream_queue_message_store.cr @@ -137,9 +137,7 @@ module LavinMQ::AMQP private def matching?(msg_headers, consumer_filter, match_unfiltered) : Bool if msg_filter = filter_value_from_headers(msg_headers) - consumer_filter.each do |filter| - return true if msg_filter == filter - end + return consumer_filter.includes? msg_filter else return match_unfiltered end