YUKI Hiroshi
null+****@clear*****
Thu Apr 23 17:01:43 JST 2015
YUKI Hiroshi 2015-04-23 17:01:43 +0900 (Thu, 23 Apr 2015) New Revision: cd849cbafc4167106e71fdc1404d8222fef1f22f https://github.com/droonga/droonga-engine/commit/cd849cbafc4167106e71fdc1404d8222fef1f22f Message: Simplify Modified files: lib/droonga/forwarder.rb Modified: lib/droonga/forwarder.rb (+1 -4) =================================================================== --- lib/droonga/forwarder.rb 2015-04-23 16:57:08 +0900 (03a32b2) +++ lib/droonga/forwarder.rb 2015-04-23 17:01:43 +0900 (8e5476f) @@ -155,7 +155,7 @@ module Droonga previous_timer.detach if previous_timer timer = Coolio::TimerWatcher.new(@auto_close_timeout) - on_timeout = lambda do + timer.on_timer do timer.detach @auto_close_timers.delete(destination) sender = @senders[destination] @@ -165,9 +165,6 @@ module Droonga @senders.delete(destination) end end - timer.on_timer do - on_timeout.call - end @loop.attach(timer) @auto_close_timers[destination] = timer end -------------- next part -------------- HTML����������������������������...Download