[Groonga-commit] long-long-float/droonga-engine at a76e850 [master] catalog fetcher: use string as key in message

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Aug 28 12:15:35 JST 2014


Kouhei Sutou	2014-08-28 12:15:35 +0900 (Thu, 28 Aug 2014)

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

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

  Message:
    catalog fetcher: use string as key in message
    
    Because message used in Droonga protocol uses string not symbol as key.
    JSON/MessagePack don't have symbol type.

  Modified files:
    lib/droonga/catalog_fetcher.rb

  Modified: lib/droonga/catalog_fetcher.rb (+2 -2)
===================================================================
--- lib/droonga/catalog_fetcher.rb    2014-08-28 12:14:15 +0900 (bb082c2)
+++ lib/droonga/catalog_fetcher.rb    2014-08-28 12:15:35 +0900 (56d9f7f)
@@ -24,8 +24,8 @@ module Droonga
 
     def fetch(options={})
       message = {
-        :dataset => options[:dataset] || CatalogGenerator::DEFAULT_DATASET,
-        :type    => "catalog.fetch"
+        "dataset" => options[:dataset] || CatalogGenerator::DEFAULT_DATASET,
+        "type"    => "catalog.fetch"
       }
       Droonga::Client.open(@client_options) do |client|
         response = client.request(message)
-------------- next part --------------
HTML����������������������������...
Descargar 



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