Merge pull request #260 from tgruben/sync-start

delay start for non-coordinator
This commit is contained in:
tgruben 2020-04-09 14:42:41 -05:00 • committed by GitHub
commit 57b2f32fa1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -145,6 +145,13 @@ func (m *Command) Start() (err error) {
if err != nil {
return errors.Wrap(err, "setting up server")
}
if !m.API.Node().IsCoordinator {
// hack to give coordinator a head start
// TODO https://github.com/molecula/pilosa/issues/266
if len(m.Config.Gossip.Seeds) > 0 {
time.Sleep(5 * time.Second)
}
}
// SetupNetworking
err = m.setupNetworking()