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,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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user