diff --git a/synced-pool.go b/synced-pool.go index 2a77ed7..7fb6640 100644 --- a/synced-pool.go +++ b/synced-pool.go @@ -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 {