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

Unified Diff: logdog/client/butler/output/logdog/output.go

Issue 2219023003: Update APIs to use new Google cloud paths. (Closed) Base URL: https://github.com/luci/luci-go@master
Patch Set: Created 4 years, 4 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/client/butler/output/logdog/output.go
diff --git a/logdog/client/butler/output/logdog/output.go b/logdog/client/butler/output/logdog/output.go
index b70ca6c833a733b36831f2f78c0a1966eff5347f..54559d2f14b4803eb214db06be6f4515a89e1df9 100644
--- a/logdog/client/butler/output/logdog/output.go
+++ b/logdog/client/butler/output/logdog/output.go
@@ -23,9 +23,9 @@ import (
out "github.com/luci/luci-go/logdog/client/butler/output/pubsub"
"github.com/luci/luci-go/logdog/common/types"
+ "cloud.google.com/go/pubsub"
"golang.org/x/net/context"
- "google.golang.org/cloud"
- "google.golang.org/cloud/pubsub"
+ "google.golang.org/api/option"
)
// Scopes returns the set of OAuth scopes required for this Output.
@@ -166,7 +166,7 @@ func (cfg *Config) Register(c context.Context) (output.Output, error) {
pctx = c
}
- psClient, err := pubsub.NewClient(pctx, proj, cloud.WithTokenSource(cfg.Auth.TokenSource()))
+ psClient, err := pubsub.NewClient(pctx, proj, option.WithTokenSource(cfg.Auth.TokenSource()))
if err != nil {
log.Fields{
log.ErrorKey: err,

Powered by Google App Engine
This is Rietveld 408576698