confirm change
All checks were successful
Build and Publish / BuildAndDeployAmd64 (push) Successful in 27s
Build and Publish / BuildAndDeploy (push) Successful in 2m8s

This commit is contained in:
matst80
2024-11-12 20:17:31 +01:00
parent ebec6cb4a7
commit da63cd6884

View File

@@ -320,12 +320,12 @@ func (p *SyncedPool) RequestOwnership(id CartId) error {
err := r.ConfirmChange(id, p.Hostname)
all++
if err != nil {
r.MissedPings++
if r.MissedPings > 3 {
if !r.IsHealthy() {
p.RemoveHost(r)
continue
}
all--
} else {
log.Printf("Error confirming change: %v from %s\n", err, p.Hostname)
}
continue
}
ok++