These methods can all be private

These methods can all be private

From 313f8ed98359c9b899e007e6c8233ccc03487347 Mon Sep 17 00:00:00 2001
From: Ben Langfeld <blangfeld@powerhrg.com>
Date: Tue, 27 Nov 2018 18:27:03 -0200
Subject: [PATCH] These methods can all be private


diff --git a/lib/message_bus/client.rb b/lib/message_bus/client.rb
index d491f40..29126aa 100644
--- a/lib/message_bus/client.rb
+++ b/lib/message_bus/client.rb
@@ -33,10 +33,6 @@ class MessageBus::Client
     ensure_closed!
   end
 
-  def in_async?
-    @async_response || @io
-  end
-
   def deliver_backlog(backlog)
     if backlog.length > 0
       if use_chunked
@@ -163,7 +159,7 @@ class MessageBus::Client
     r || []
   end
 
-  protected
+  private
 
   # heavily optimised to avoid all uneeded allocations
   NEWLINE = "\r\n".freeze
@@ -249,4 +245,8 @@ class MessageBus::Client
   def messages_to_json(msgs)
     MessageBus::Rack::Middleware.backlog_to_json(msgs)
   end
+
+  def in_async?
+    @async_response || @io
+  end
 end

GitHub