[Groonga-commit] droonga/fluent-plugin-droonga at 2257bdf [master] Add "distribute_" prefix to avoid using the same variable name

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Dec 20 18:14:33 JST 2013


Kouhei Sutou	2013-12-20 18:14:33 +0900 (Fri, 20 Dec 2013)

  New Revision: 2257bdfc52b582820b474f367ace323fed7545d1
  https://github.com/droonga/fluent-plugin-droonga/commit/2257bdfc52b582820b474f367ace323fed7545d1

  Message:
    Add "distribute_" prefix to avoid using the same variable name

  Modified files:
    lib/droonga/distributor_plugin.rb

  Modified: lib/droonga/distributor_plugin.rb (+2 -2)
===================================================================
--- lib/droonga/distributor_plugin.rb    2013-12-20 17:58:43 +0900 (119a637)
+++ lib/droonga/distributor_plugin.rb    2013-12-20 18:14:33 +0900 (691d872)
@@ -31,7 +31,7 @@ module Droonga
     end
 
     def scatter_all(message, key)
-      message = [{
+      distribute_message = [{
         "command"=> message["type"],
         "dataset"=> message["dataset"],
         "body"=> message["body"],
@@ -40,7 +40,7 @@ module Droonga
         "replica"=> "all",
         "post"=> true
       }]
-      distribute(message)
+      distribute(distribute_message)
     end
 
     def broadcast_all(message)
-------------- next part --------------
HTML����������������������������...
Download 



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