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,11 +384,14 @@ func (p *SyncedPool) getGrainPool(id CartId) (GrainPool, error) {
remoteLookupCount.Inc()
return remotePool, nil
}
if !ok {
err := p.RequestOwnership(id)
if err != nil {
return nil, err
}
}
}
return p.local, nil
}