Skip to content

Commit

Permalink
These methods can all be private
Browse files Browse the repository at this point in the history
  • Loading branch information
benlangfeld committed Nov 27, 2018
1 parent 508b330 commit 313f8ed
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/message_bus/client.rb
Expand Up @@ -33,10 +33,6 @@ def cancel
ensure_closed!
end

def in_async?
@async_response || @io
end

def deliver_backlog(backlog)
if backlog.length > 0
if use_chunked
Expand Down Expand Up @@ -163,7 +159,7 @@ def backlog
r || []
end

protected
private

# heavily optimised to avoid all uneeded allocations
NEWLINE = "\r\n".freeze
Expand Down Expand Up @@ -249,4 +245,8 @@ def write_and_close(data)
def messages_to_json(msgs)
MessageBus::Rack::Middleware.backlog_to_json(msgs)
end

def in_async?
@async_response || @io
end
end

0 comments on commit 313f8ed

Please sign in to comment.