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

Unified Diff: logdog/common/storage/bigtable/bigtable.go

Issue 2951393002: [errors] de-specialize Transient in favor of Tags. (Closed)
Patch Set: more refactor 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..23d38261212b74b21e04339bee31e6da9513cb44 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/transient"
"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 transient.Tag.Apply(err)
}
}

Powered by Google App Engine
This is Rietveld 408576698