[Groonga-commit] droonga/fluent-plugin-droonga at 729dd0b [master] Remove some verbose variables.

Back to archive index

Daijiro MORI null+****@clear*****
Mon Aug 19 16:08:17 JST 2013


Daijiro MORI	2013-08-19 16:08:17 +0900 (Mon, 19 Aug 2013)

  New Revision: 729dd0b26f62c0ff6938b32c2e2dcadabd0836f4
  https://github.com/droonga/fluent-plugin-droonga/commit/729dd0b26f62c0ff6938b32c2e2dcadabd0836f4

  Message:
    Remove some verbose variables.

  Modified files:
    lib/droonga/proxy.rb

  Modified: lib/droonga/proxy.rb (+2 -5)
===================================================================
--- lib/droonga/proxy.rb    2013-08-19 15:05:50 +0900 (eb9a974)
+++ lib/droonga/proxy.rb    2013-08-19 16:08:17 +0900 (6527e43)
@@ -254,8 +254,7 @@ module Droonga
               descendants = {}
               component["descendants"].each do |name, indices|
                 descendants[name] = indices.collect do |index|
-                  dest = @components[index]
-                  dest["routes"].map do |route|
+                  @components[index]["routes"].map do |route|
                     @proxy.farm_path(route)
                   end
                 end
@@ -280,9 +279,7 @@ module Droonga
                 "value" => result[name]
               }
               indices.each do |index|
-                dest = @components[index]
-                routes = dest["routes"]
-                routes.each do |route|
+                @components[index]["routes"].each do |route|
                   @proxy.dispatch(message, route)
                 end
               end
-------------- next part --------------
HTML����������������������������...
下載 



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