[Groonga-commit] long-long-float/droonga-engine at d8f34ed [master] Use synchronous API

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Aug 28 12:06:46 JST 2014


Kouhei Sutou	2014-08-28 12:06:46 +0900 (Thu, 28 Aug 2014)

  New Revision: d8f34ed341b837f46639571a6306a628c196e5c3
  https://github.com/long-long-float/droonga-engine/commit/d8f34ed341b837f46639571a6306a628c196e5c3

  Merged 5be18f3: Merge branch 'master' of github.com:droonga/droonga-engine
  Merged 15fc80d: Merge branch 'master' of github.com:droonga/droonga-engine

  Message:
    Use synchronous API

  Modified files:
    lib/droonga/catalog_fetcher.rb

  Modified: lib/droonga/catalog_fetcher.rb (+3 -5)
===================================================================
--- lib/droonga/catalog_fetcher.rb    2014-08-28 12:06:11 +0900 (9548c8d)
+++ lib/droonga/catalog_fetcher.rb    2014-08-28 12:06:46 +0900 (2614308)
@@ -31,11 +31,9 @@ module Droonga
     def fetch
       catalog = nil
       Droonga::Client.open(@client_options) do |client|
-        request = client.request(:dataset => @client_options[:dataset],
-                                 :type    => "catalog.fetch") do |response|
-          catalog = response["body"]
-        end
-        request.wait
+        response = client.request(:dataset => @client_options[:dataset],
+                                  :type    => "catalog.fetch")
+        catalog = response["body"]
       end
       catalog
     end
-------------- next part --------------
HTML����������������������������...
Download 



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