Skip to content

Commit

Permalink
refactor stream_consumer
Browse files Browse the repository at this point in the history
Co-authored-by: Carl Hörberg <carl@84codes.com>
  • Loading branch information
viktorerlingsson and carlhoerberg authored Jan 20, 2025
1 parent cf274b9 commit c9ada3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lavinmq/amqp/stream_consumer.cr
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ module LavinMQ
# noop
else raise LavinMQ::Error::PreconditionFailed.new("x-stream-filter-value must be a string")
end
case frame.arguments["x-stream-match-unfiltered"]?
case match_unfiltered = frame.arguments["x-stream-match-unfiltered"]?
when Bool
@match_unfiltered = frame.arguments["x-stream-match-unfiltered"].as(Bool)
@match_unfiltered = match_unfiltered
when Nil
# noop
else raise LavinMQ::Error::PreconditionFailed.new("x-stream-match-unfiltered must be a boolean")
Expand Down

0 comments on commit c9ada3c

Please sign in to comment.