limit queue
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m48s

This commit is contained in:
matst80
2024-11-10 12:50:29 +01:00
parent ee13f516ef
commit fd9a66d193
3 changed files with 37 additions and 1 deletions

View File

@@ -422,6 +422,10 @@ func (p *SyncedPool) addRemoteHost(address string, remote *RemoteHost) error {
ids := remote.GetCartMappings()
p.mu.Lock()
for _, id := range ids {
if p.local.grains[id] != nil {
log.Printf("Grain %s already exists locally, deleting\n", id)
delete(p.local.grains, id)
}
p.remoteIndex[id] = remote.Pool
}
p.mu.Unlock()