[Groonga-commit] droonga/droonga-engine at d4464b4 [master] Use Address instead of custom parser

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Apr 30 14:33:00 JST 2015


YUKI Hiroshi	2015-04-30 14:33:00 +0900 (Thu, 30 Apr 2015)

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

  Message:
    Use Address instead of custom parser

  Modified files:
    lib/droonga/cluster.rb

  Modified: lib/droonga/cluster.rb (+2 -1)
===================================================================
--- lib/droonga/cluster.rb    2015-04-30 14:19:29 +0900 (9b387da)
+++ lib/droonga/cluster.rb    2015-04-30 14:33:00 +0900 (95d0657)
@@ -17,6 +17,7 @@ require "droonga/loggable"
 require "droonga/changable"
 require "droonga/path"
 require "droonga/file_observer"
+require "droonga/address"
 require "droonga/engine_node"
 require "droonga/differ"
 
@@ -161,7 +162,7 @@ module Droonga
 
     def forward(message, destination)
       receiver = destination["to"]
-      receiver_node_name = receiver.match(/\A[^:]+:\d+\/[^.]+/).to_s
+      receiver_node_name = Address.parse(receiver).node
       raise NotStartedYet.new unless @engine_nodes
       @engine_nodes.each do |node|
         if node.name == receiver_node_name
-------------- next part --------------
HTML����������������������������...
Download 



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