[Groonga-commit] droonga/droonga-engine at b6d6db7 [master] Fix wrong use of collect method

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Jun 27 12:14:27 JST 2014


YUKI Hiroshi	2014-06-27 12:14:27 +0900 (Fri, 27 Jun 2014)

  New Revision: b6d6db75f3bb9cd29a723aca68b11a080a1611a2
  https://github.com/droonga/droonga-engine/commit/b6d6db75f3bb9cd29a723aca68b11a080a1611a2

  Message:
    Fix wrong use of collect method

  Modified files:
    lib/droonga/dispatcher.rb

  Modified: lib/droonga/dispatcher.rb (+6 -2)
===================================================================
--- lib/droonga/dispatcher.rb    2014-06-27 12:12:10 +0900 (a176740)
+++ lib/droonga/dispatcher.rb    2014-06-27 12:14:27 +0900 (69c7c59)
@@ -187,7 +187,9 @@ module Droonga
               one_way_step.delete("post")
               one_way_step.delete("outputs")
               one_way_steps << one_way_step
-              one_way_destinations += routes.collect(&:farm_path)
+              one_way_destinations += routes.collect do |route|
+                farm_path(route)
+              end
             end
           end
           routes = dataset.get_routes(step, @engine_state.live_nodes)
@@ -195,7 +197,9 @@ module Droonga
         else
           step["routes"] ||= [id]
         end
-        destinations += step["routes"].collect(&:farm_path)
+        destinations += step["routes"].collect do |route|
+          farm_path(route)
+        end
       end
 
       dispatch_message = { "id" => id, "steps" => steps }
-------------- next part --------------
HTML����������������������������...
Download 



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