less logs
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m52s

This commit is contained in:
matst80
2024-11-11 10:32:15 +01:00
parent 3935eb68eb
commit 1c31ff9d80

View File

@@ -85,10 +85,7 @@ func (p *SyncedPool) NegotiateHandler(data []byte) (uint32, []byte, error) {
negotiationCount.Inc()
log.Printf("Handling negotiation\n")
for _, host := range p.ExcludeKnown(strings.Split(string(data), ";")) {
err := p.AddRemote(host)
if err != nil {
log.Printf("Error adding remote %s: %v\n", host, err)
}
p.AddRemote(host)
}
return RemoteNegotiateResponse, []byte("ok"), nil
@@ -169,10 +166,7 @@ func NewSyncedPool(local *GrainLocalPool, hostname string, discovery Discovery)
go func(h string) {
log.Printf("Discovered host %s, waiting for startup", h)
time.Sleep(time.Second)
err := pool.AddRemote(h)
if err != nil {
log.Printf("Error adding remote %s: %v", h, err)
}
pool.AddRemote(h)
}(chng.Host)
} else if chng.Type == watch.Deleted && known {
log.Printf("Host removed %s, removing from index", chng.Host)