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

Unified Diff: logdog/server/retryServicesClient/client.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/server/retryServicesClient/client.go
diff --git a/logdog/server/retryServicesClient/client.go b/logdog/server/retryServicesClient/client.go
index 8c16867f09067dba9048a10105470ced92acbeee..19f57805f40de264d77f4cee2128164aa93c7522 100644
--- a/logdog/server/retryServicesClient/client.go
+++ b/logdog/server/retryServicesClient/client.go
@@ -10,6 +10,7 @@ import (
"github.com/golang/protobuf/ptypes/empty"
log "github.com/luci/luci-go/common/logging"
"github.com/luci/luci-go/common/retry"
+ "github.com/luci/luci-go/common/retry/transient"
"github.com/luci/luci-go/grpc/grpcutil"
s "github.com/luci/luci-go/logdog/api/endpoints/coordinator/services/v1"
"golang.org/x/net/context"
@@ -34,7 +35,7 @@ func New(c s.ServicesClient, f retry.Factory) s.ServicesClient {
if f == nil {
f = retry.Default
}
- return &client{c, retry.TransientOnly(f)}
+ return &client{c, transient.Only(f)}
}
func (c *client) GetConfig(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (r *s.GetConfigResponse, err error) {

Powered by Google App Engine
This is Rietveld 408576698