remote host if not connectable
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m52s

This commit is contained in:
matst80
2024-11-10 17:15:10 +01:00
parent 7e0a59bfe4
commit 0db23baf5c

View File

@@ -365,6 +365,14 @@ func (p *SyncedPool) AddRemote(address string) error {
Host: address,
}
go func() {
for range client.Errors {
if client.ErrorCount > 3 {
p.RemoveHost(&remote)
}
}
}()
return p.addRemoteHost(address, &remote)
}