Daijiro MORI
null+****@clear*****
Sat Aug 17 13:37:36 JST 2013
Daijiro MORI 2013-08-17 13:37:36 +0900 (Sat, 17 Aug 2013) New Revision: d4c66b0ba6f73f0a3631309c3fcff9f0e9b19dbb https://github.com/droonga/fluent-plugin-droonga/commit/d4c66b0ba6f73f0a3631309c3fcff9f0e9b19dbb Message: Make ProxyHandler prefer synchronous. Modified files: lib/droonga/proxy.rb Modified: lib/droonga/proxy.rb (+6 -0) =================================================================== --- lib/droonga/proxy.rb 2013-08-17 13:32:27 +0900 (6896b94) +++ lib/droonga/proxy.rb 2013-08-17 13:37:36 +0900 (3f2042e) @@ -274,6 +274,7 @@ module Droonga end end end + class ProxyMessageHandler < Droonga::Handler Droonga::HandlerPlugin.register("proxy_message", self) def initialize(*arguments) @@ -290,6 +291,7 @@ module Droonga return true end end + class ProxyHandler < Droonga::Handler attr_reader :task, :name, :component, :args def handle(command, request, *arguments) @@ -301,5 +303,9 @@ module Droonga value1 = request["value"] @task["value"] = super(command, [value0, value1], *arguments) end + + def prefer_synchronous?(command) + return true + end end end -------------- next part -------------- HTML����������������������������...Download