Permalink
Browse files

defer rabbit server startup to avoid NATS authentication race condition

Change-Id: If13cfcbd08df18162c26cba746d2e077d913c7dd
  • Loading branch information...
kushmerick committed Jun 3, 2011
1 parent 04b8229 commit 73d1679482f740d89868eb281e626ff8d284084e
Showing with 1 addition and 1 deletion.
  1. +1 −1 rabbit/lib/rabbit_service/rabbit_node.rb
@@ -54,7 +54,7 @@ def initialize(options)
def start
@logger.info("Starting rabbit node...")
start_db
- start_server
+ EM.defer { start_server }
ProvisionedInstance.all.each do |instance|
@available_memory -= (instance.memory || @max_memory)
end

0 comments on commit 73d1679

Please sign in to comment.