Kouhei Sutou
null+****@clear*****
Thu Dec 19 17:46:39 JST 2013
Kouhei Sutou 2013-12-19 17:46:39 +0900 (Thu, 19 Dec 2013) New Revision: ab3718337df7b4ef3d285dc672baeddd6f67cdf8 https://github.com/droonga/fluent-plugin-droonga/commit/ab3718337df7b4ef3d285dc672baeddd6f67cdf8 Message: watch.feed: remove needless envelope to change Modified files: lib/droonga/plugin/handler/watch.rb test/unit/plugin/handler/test_watch.rb Modified: lib/droonga/plugin/handler/watch.rb (+0 -1) =================================================================== --- lib/droonga/plugin/handler/watch.rb 2013-12-19 17:39:36 +0900 (11edd96) +++ lib/droonga/plugin/handler/watch.rb 2013-12-19 17:46:39 +0900 (d5e8c8d) @@ -75,7 +75,6 @@ module Droonga def feed(request) @watcher.feed(:targets => request["targets"]) do |route, subscribers| message = request # return request itself - envelope["to"] = subscribers forward(message, "to" => route, "type" => "watch.notification") end end Modified: test/unit/plugin/handler/test_watch.rb (+0 -1) =================================================================== --- test/unit/plugin/handler/test_watch.rb 2013-12-19 17:39:36 +0900 (1bc462e) +++ test/unit/plugin/handler/test_watch.rb 2013-12-19 17:46:39 +0900 (6001263) @@ -149,7 +149,6 @@ class WatchHandlerTest < Test::Unit::TestCase ], ], @handler.messages) - assert_equal({ "to" => ["localhost"] }, @handler.envelope) end def test_feed_not_match -------------- next part -------------- HTML����������������������������...Download