This commit is contained in:
matst80
2024-11-15 09:28:58 +01:00
parent 7795fc9c39
commit 00d65035d0
3 changed files with 9 additions and 32 deletions

View File

@@ -24,7 +24,7 @@ func (h *RemoteHost) Initialize(p *SyncedPool) {
return
}
log.Printf("Remote %s has %d grains\n", h.Host, len(ids))
p.mu.Lock()
local := 0
remoteNo := 0
for _, id := range ids {
@@ -32,7 +32,7 @@ func (h *RemoteHost) Initialize(p *SyncedPool) {
remoteNo++
}
log.Printf("Removed %d local grains, added %d remote grains\n", local, remoteNo)
p.mu.Unlock()
go p.Negotiate()
}