longer wait
Some checks failed
Build and Publish / BuildAndDeployAmd64 (push) Failing after 19s
Build and Publish / BuildAndDeploy (push) Failing after 2m6s

This commit is contained in:
matst80
2024-11-13 23:17:24 +01:00
parent 78abef7d73
commit 6b08efdc80
2 changed files with 9 additions and 9 deletions

View File

@@ -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 {