Skip to content

Commit

Permalink
node should wait util initialized when there is master node
Browse files Browse the repository at this point in the history
gensmusic authored and lni committed Feb 28, 2019
1 parent ddcb059 commit 171b630
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nodehost.go
Original file line number Diff line number Diff line change
@@ -258,7 +258,7 @@ func NewNodeHostWithMasterClientFactory(nhConfig config.NodeHostConfig,
nh.stopper.RunWorker(func() {
nh.tickWorkerMain()
})
if !nh.masterMode() {
if nh.masterMode() {
nh.waitUntilInitialized()
}
nh.logNodeHostDetails()

0 comments on commit 171b630

Please sign in to comment.