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

Unified Diff: logdog/common/storage/bigtable/bigtable.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
Index: logdog/common/storage/bigtable/bigtable.go
diff --git a/logdog/common/storage/bigtable/bigtable.go b/logdog/common/storage/bigtable/bigtable.go
index a42fe60f0775c5d69bbff0c5bae4d9d18402ee70..b549394ad8bc284b8bff6153f5580f4d6570e843 100644
--- a/logdog/common/storage/bigtable/bigtable.go
+++ b/logdog/common/storage/bigtable/bigtable.go
@@ -12,7 +12,7 @@ import (
"golang.org/x/net/context"
"google.golang.org/grpc/codes"
- "github.com/luci/luci-go/common/errors"
+ "github.com/luci/luci-go/common/retry"
"github.com/luci/luci-go/grpc/grpcutil"
"github.com/luci/luci-go/logdog/common/storage"
)
@@ -197,6 +197,6 @@ func wrapIfTransientForApply(err error) error {
case codes.InvalidArgument:
return err
default:
- return errors.WrapTransient(err)
+ return retry.Tag.Apply(err)
}
}

Powered by Google App Engine
This is Rietveld 408576698