Navigation Menu

Skip to content

Commit

Permalink
Don't touch to the missing dispatcher from Handler
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jun 26, 2014
1 parent ab6541c commit 3f307dc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/droonga/plugins/system.rb
Expand Up @@ -25,9 +25,10 @@ class StatusHandler < Droonga::Handler
action.synchronous = true

def handle(message)
live_nodes = @messenger.engine_state.live_nodes
engine_state = @messenger.engine_state
live_nodes = engine_state.live_nodes
nodes = {}
dispatcher.all_nodes.collect do |identifier|
engine_state.all_nodes.collect do |identifier|
nodes[identifier] = {
"live" => live_nodes.include?(identifier),
}
Expand Down

0 comments on commit 3f307dc

Please sign in to comment.