X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/acb1d98cdfa6e33bfd3e1bb7510b78a4fd9384e2..fa78e264ef585f02348f4f5c0a7183746a708a8f:/services/keep-web/cache.go diff --git a/services/keep-web/cache.go b/services/keep-web/cache.go index 8d1062825e..5400f694fd 100644 --- a/services/keep-web/cache.go +++ b/services/keep-web/cache.go @@ -8,8 +8,8 @@ import ( "sync" "time" - "git.curoverse.com/arvados.git/sdk/go/arvados" - "git.curoverse.com/arvados.git/sdk/go/arvadosclient" + "git.arvados.org/arvados.git/sdk/go/arvados" + "git.arvados.org/arvados.git/sdk/go/arvadosclient" "github.com/hashicorp/golang-lru" "github.com/prometheus/client_golang/prometheus" ) @@ -224,13 +224,12 @@ func (c *cache) Get(arv *arvadosclient.ArvadosClient, targetID string, forceRelo }) } return collection, err - } else { - // PDH changed, but now we know we have - // permission -- and maybe we already have the - // new PDH in the cache. - if coll := c.lookupCollection(arv.ApiToken + "\000" + current.PortableDataHash); coll != nil { - return coll, nil - } + } + // PDH changed, but now we know we have + // permission -- and maybe we already have the + // new PDH in the cache. + if coll := c.lookupCollection(arv.ApiToken + "\000" + current.PortableDataHash); coll != nil { + return coll, nil } }