Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2556)

Unified Diff: appengine/datastorecache/cache.go

Issue 2951393002: [errors] de-specialize Transient in favor of Tags. (Closed)
Patch Set: copyright Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | appengine/gaeauth/client/client.go » ('j') | common/errors/annotate.go » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/datastorecache/cache.go
diff --git a/appengine/datastorecache/cache.go b/appengine/datastorecache/cache.go
index 3b5d38f2f30060030875b3f806a79051d4a2250f..841349b4e614af8dc0643f22223097c576549d56 100644
--- a/appengine/datastorecache/cache.go
+++ b/appengine/datastorecache/cache.go
@@ -336,7 +336,7 @@ func (bci *boundCacheInst) get(c context.Context, key []byte) (Value, error) {
case ErrFailedToLock:
// Retry after delay.
- return errors.WrapTransient(err)
+ return retry.Tag.Apply(err)
dnj 2017/06/24 14:53:54 I don't like "retry.Tag.Apply" as a way of express
iannucci 2017/06/24 20:16:09 Done.
default:
log.WithError(err).Warningf(c, "Unexpected failure obtaining initial load lock.")
« no previous file with comments | « no previous file | appengine/gaeauth/client/client.go » ('j') | common/errors/annotate.go » ('J')

Powered by Google App Engine
This is Rietveld 408576698