Skip to content

Commit

Permalink
fixup! Channel pool
Browse files Browse the repository at this point in the history
  • Loading branch information
carlhoerberg committed Feb 17, 2024
1 parent c044a6f commit 4bb7f52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/amqproxy/client.cr
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module AMQProxy
end

# frames from enduser
def read_loop(channel_pool, socket = @socket)
def read_loop(channel_pool, socket = @socket) # ameba:disable Metrics/CyclomaticComplexity
loop do
case frame = AMQ::Protocol::Frame.from_io(socket, IO::ByteFormat::NetworkEndian)
when AMQ::Protocol::Frame::Heartbeat
Expand Down
2 changes: 1 addition & 1 deletion src/amqproxy/upstream.cr
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ module AMQProxy
end

# Frames from upstream (to client)
private def read_loop(socket = @socket)
private def read_loop(socket = @socket) # ameba:disable Metrics/CyclomaticComplexity
loop do
case frame = AMQ::Protocol::Frame.from_io(socket, IO::ByteFormat::NetworkEndian)
when AMQ::Protocol::Frame::Heartbeat then send frame
Expand Down

0 comments on commit 4bb7f52

Please sign in to comment.