[Groonga-commit] droonga/droonga-client-ruby at df14336 [master] Revert "Expose default host and port of Receiver"

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Oct 24 18:29:59 JST 2013


YUKI Hiroshi	2013-10-24 18:29:59 +0900 (Thu, 24 Oct 2013)

  New Revision: df14336ffae45f1aadee94d6f917c179fcc05fe5
  https://github.com/droonga/droonga-client-ruby/commit/df14336ffae45f1aadee94d6f917c179fcc05fe5

  Message:
    Revert "Expose default host and port of Receiver"
    
    No need to expose them.
    This reverts commit d816a54e5dc554cbf42005c92b84c51b17badc79.

  Modified files:
    lib/droonga/client/connection/droonga_protocol.rb

  Modified: lib/droonga/client/connection/droonga_protocol.rb (+2 -5)
===================================================================
--- lib/droonga/client/connection/droonga_protocol.rb    2013-10-24 18:22:01 +0900 (bb406bc)
+++ lib/droonga/client/connection/droonga_protocol.rb    2013-10-24 18:29:59 +0900 (27b91c8)
@@ -56,13 +56,10 @@ module Droonga
         end
 
         class Receiver
-          DEFAULT_HOST = "0.0.0.0"
-          DEFAULT_PORT = 0
-
           def initialize(options={})
             default_options = {
-              :host => DEFAULT_HOST,
-              :port => DEFAULT_PORT,
+              :host => "0.0.0.0",
+              :port => 0,
             }
             options = default_options.merge(options)
             @socket = TCPServer.new(options[:host], options[:port])
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index