bool error
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m46s

This commit is contained in:
matst80
2024-11-10 16:47:05 +01:00
parent 10d85350d0
commit 5501548382

View File

@@ -100,7 +100,6 @@ func (p *SyncedPool) GrainOwnerChangeHandler(data []byte) (uint16, []byte, error
for _, r := range p.remotes {
if r.Host == string(idAndHostParts[1]) {
log.Printf("Remote grain %s changed to %s\n", idAndHostParts[0], idAndHostParts[1])
p.mu.Lock()
if p.local.grains[ToCartId(idAndHostParts[0])] != nil {
@@ -198,7 +197,7 @@ func (p *SyncedPool) IsKnown(host string) bool {
return true
}
}
return host != p.Hostname
return host == p.Hostname
}
func (p *SyncedPool) ExcludeKnown(hosts []string) []string {