better retry
All checks were successful
Build and Publish / BuildAndDeployAmd64 (push) Successful in 27s
Build and Publish / BuildAndDeploy (push) Successful in 2m15s

This commit is contained in:
matst80
2024-11-13 10:19:56 +01:00
parent 73b1616d4b
commit 589a7c159b
2 changed files with 18 additions and 5 deletions

View File

@@ -399,6 +399,10 @@ func (p *SyncedPool) AddRemote(host string) error {
}()
go func() {
for range time.Tick(time.Second * 3) {
if !remote.IsHealthy() {
return
}
log.Printf("Pinging remote %s\n", host)
err := remote.Ping()
for err != nil {