run on x86 for a while
All checks were successful
Build and Publish / BuildAndDeployAmd64 (push) Successful in 29s
Build and Publish / BuildAndDeploy (push) Successful in 2m28s

This commit is contained in:
matst80
2024-11-13 08:32:40 +01:00
parent ce5f19d287
commit c9a7113e12
7 changed files with 37 additions and 32 deletions

View File

@@ -143,7 +143,7 @@ func (p *SyncedPool) SpawnRemoteGrain(id CartId, host string) {
return
}
go func() {
<-remote.Died
<-remote.PersistentConnection.Died
p.RemoveRemoteGrain(id)
p.HandleHostError(host)
log.Printf("Remote grain %s died, host: %s\n", id.String(), host)
@@ -371,7 +371,7 @@ func (p *SyncedPool) AddRemote(host string) error {
}
p.remotes[host] = &remote
go func() {
<-remote.Died
<-remote.PersistentConnection.Died
log.Printf("Removing host, remote died %s", host)
p.RemoveHost(&remote)
}()
@@ -381,12 +381,12 @@ func (p *SyncedPool) AddRemote(host string) error {
for err != nil {
time.Sleep(time.Millisecond * 200)
err = remote.Ping()
if !remote.IsHealthy() {
log.Printf("Removing host, unable to communicate with %s", host)
p.RemoveHost(&remote)
break
return
}
err = remote.Ping()
}
}
}()