Navigation Menu

Skip to content

Commit

Permalink
Reuse already instantiated value
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 21, 2015
1 parent 5411c98 commit 7c8b85e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/droonga/serf.rb
Expand Up @@ -67,9 +67,10 @@ def run_agent(loop)
*retry_joins)
agent.on_ready = lambda do
set_tag("type", "engine")
set_tag("role", role)
set_tag("cluster_id", cluster_id)
NodeRole.my_role = role
current_role = role
set_tag("role", current_role)
NodeRole.my_role = current_role
end
agent.start
logger.trace("run_agent: done")
Expand Down

0 comments on commit 7c8b85e

Please sign in to comment.