remove dead process
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m53s
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m53s
This commit is contained in:
@@ -414,14 +414,6 @@ func (p *SyncedPool) AddRemote(host string) error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
go func() {
|
|
||||||
for range client.Errors {
|
|
||||||
if client.ErrorCount > 3 {
|
|
||||||
log.Printf("Error count exceeded, removing remote %s", host)
|
|
||||||
p.RemoveHost(&remote)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}()
|
|
||||||
|
|
||||||
return p.addRemoteHost(host, &remote)
|
return p.addRemoteHost(host, &remote)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user