only request if not in cache
Some checks failed
Build and Publish / BuildAndDeploy (push) Has been cancelled

This commit is contained in:
matst80
2024-11-10 16:53:44 +01:00
parent 6dbf4d60a3
commit 1fee6f179e

View File

@@ -384,10 +384,13 @@ func (p *SyncedPool) getGrainPool(id CartId) (GrainPool, error) {
remoteLookupCount.Inc() remoteLookupCount.Inc()
return remotePool, nil return remotePool, nil
} }
err := p.RequestOwnership(id) if !ok {
if err != nil { err := p.RequestOwnership(id)
return nil, err if err != nil {
return nil, err
}
} }
} }
return p.local, nil return p.local, nil
} }