[Groonga-commit] droonga/droonga-client-ruby at 823c9b9 [master] Use other word for request-response type messaging

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Jan 17 15:14:29 JST 2014


Kouhei Sutou	2014-01-17 15:14:29 +0900 (Fri, 17 Jan 2014)

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

  Message:
    Use other word for request-response type messaging
    
    shuttle ->
    reciprocate

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

  Modified: lib/droonga/client.rb (+4 -3)
===================================================================
--- lib/droonga/client.rb    2014-01-16 19:26:04 +0900 (32179ad)
+++ lib/droonga/client.rb    2014-01-17 15:14:29 +0900 (3e4999f)
@@ -59,12 +59,13 @@ module Droonga
       @connection = Connection::DroongaProtocol.new(options)
     end
 
-    def shuttle(message, options={}, &block)
-      @connection.shuttle(message, &block)
+    def reciprocate(message, options={}, &block)
+      @connection.reciprocate(message, &block)
     end
 
+
     def search(body, options={}, &block)
-      shuttle({
+      reciprocate({
                 "id"   => Time.now.to_f.to_s,
                 "date" => Time.now,
                 "type" => "search",

  Modified: lib/droonga/client/connection/droonga_protocol.rb (+3 -3)
===================================================================
--- lib/droonga/client/connection/droonga_protocol.rb    2014-01-16 19:26:04 +0900 (b819557)
+++ lib/droonga/client/connection/droonga_protocol.rb    2014-01-17 15:14:29 +0900 (34a11f1)
@@ -50,7 +50,7 @@ module Droonga
         # Sends a request message and receives one or more response
         # messages.
         #
-        # @overload shuttle(message, options={})
+        # @overload reciprocate(message, options={})
         #   Sends the request message and receives one or more
         #   messages synchronously.
         #
@@ -60,7 +60,7 @@ module Droonga
         #
         #   @return [Object] The response. TODO: WRITE ME
         #
-        # @overload shuttle(message, options={}, &block)
+        # @overload reciprocate(message, options={}, &block)
         #   Sends the request message and receives one or more
         #   response messages asynchronously.
         #
@@ -73,7 +73,7 @@ module Droonga
         #      The response.
         #
         #   @return [Request] The request object.
-        def shuttle(message, options={}, &block)
+        def reciprocate(message, options={}, &block)
           receiver = Receiver.new
           message = message.dup
           message["replyTo"] = "#{receiver.host}:#{receiver.port}/droonga"
-------------- next part --------------
HTML����������������������������...
Download 



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