longer wait
This commit is contained in:
@@ -205,11 +205,11 @@ func NewSyncedPool(local *GrainLocalPool, hostname string, discovery Discovery)
|
||||
}
|
||||
known := pool.IsKnown(chng.Host)
|
||||
if chng.Type != watch.Deleted && !known {
|
||||
go func(h string) {
|
||||
log.Printf("Discovered host %s, waiting for startup", h)
|
||||
time.Sleep(time.Second)
|
||||
pool.AddRemote(h)
|
||||
}(chng.Host)
|
||||
|
||||
log.Printf("Discovered host %s, waiting for startup", h)
|
||||
time.Sleep(time.Second)
|
||||
pool.AddRemote(chng.Host)
|
||||
|
||||
} else if chng.Type == watch.Deleted && known {
|
||||
log.Printf("Host removed %s, removing from index", chng.Host)
|
||||
for _, r := range pool.remotes {
|
||||
|
||||
Reference in New Issue
Block a user