[Groonga-commit] droonga/droonga-engine at 7f5db7d [master] Remove needless DROONGA_LIVE_NODES_LIST environment variable support

Zurück zum Archiv-Index

Kouhei Sutou null+****@clear*****
Mon May 26 17:17:42 JST 2014


Kouhei Sutou	2014-05-26 17:17:42 +0900 (Mon, 26 May 2014)

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

  Message:
    Remove needless DROONGA_LIVE_NODES_LIST environment variable support
    
    Because it is not backward incompatible change.

  Modified files:
    lib/droonga/live_nodes_list_observer.rb

  Modified: lib/droonga/live_nodes_list_observer.rb (+1 -6)
===================================================================
--- lib/droonga/live_nodes_list_observer.rb    2014-05-26 16:54:06 +0900 (67c988b)
+++ lib/droonga/live_nodes_list_observer.rb    2014-05-26 17:17:42 +0900 (d08eefe)
@@ -47,7 +47,7 @@ module Droonga
     LIST_FILE_NAME = "live-nodes.json"
 
     def file_path
-      @file_path ||= prepare_file_path
+      (Droonga::Path.state + LIST_FILE_NAME).to_s
     end
 
     def directory_path
@@ -63,11 +63,6 @@ module Droonga
     end
 
     private
-    def prepare_file_path
-      path = ENV["DROONGA_LIVE_NODES_LIST"] || LIST_FILE_NAME
-      File.expand_path(path, Droonga::Path.state)
-    end
-
     def log_tag
       "live-nodes-list-observer"
     end
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index