only request if not in cache
Some checks failed
Build and Publish / BuildAndDeploy (push) Has been cancelled
Some checks failed
Build and Publish / BuildAndDeploy (push) Has been cancelled
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user