remote host if not connectable
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m52s
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m52s
This commit is contained in:
@@ -365,6 +365,14 @@ func (p *SyncedPool) AddRemote(address string) error {
|
|||||||
Host: address,
|
Host: address,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
go func() {
|
||||||
|
for range client.Errors {
|
||||||
|
if client.ErrorCount > 3 {
|
||||||
|
p.RemoveHost(&remote)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}()
|
||||||
|
|
||||||
return p.addRemoteHost(address, &remote)
|
return p.addRemoteHost(address, &remote)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user