remove dead process
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m53s

This commit is contained in:
matst80
2024-11-11 19:08:48 +01:00
parent 5016556dec
commit a491b0107b

View File

@@ -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)
} }