update
This commit is contained in:
@@ -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()
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user