Navigation Menu

Skip to content

Commit

Permalink
Collect nodes status correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jan 6, 2015
1 parent f32e732 commit 7a51b79
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/droonga/cluster.rb
Expand Up @@ -71,11 +71,13 @@ def engine_nodes
end

def engine_nodes_status
engine_nodes.collect do |node|
nodes[node.name] = {
nodes_status = {}
engine_nodes.each do |node|
nodes_status[node.name] = {
"status" => node.status,
}
end
nodes_status
end

def forward(message, destination)
Expand Down

0 comments on commit 7a51b79

Please sign in to comment.