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

Unified Diff: logdog/server/service/service.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/server/service/service.go
diff --git a/logdog/server/service/service.go b/logdog/server/service/service.go
index 3e0d4e00bdc9858588f27257bf44802a7a174d31..c89249e6f517be0e5c3f1f7e149104bf152b9382 100644
--- a/logdog/server/service/service.go
+++ b/logdog/server/service/service.go
@@ -32,9 +32,10 @@ import (
"github.com/luci/luci-go/logdog/common/storage/bigtable"
"github.com/luci/luci-go/logdog/server/retryServicesClient"
"github.com/luci/luci-go/logdog/server/service/config"
+
+ "cloud.google.com/go/compute/metadata"
"golang.org/x/net/context"
- "google.golang.org/cloud"
- "google.golang.org/cloud/compute/metadata"
+ "google.golang.org/api/option"
)
var (
@@ -392,8 +393,8 @@ func (s *Service) IntermediateStorage(c context.Context) (storage.Storage, error
Project: btcfg.Project,
Instance: btcfg.Instance,
LogTable: btcfg.LogTableName,
- ClientOptions: []cloud.ClientOption{
- cloud.WithTokenSource(a.TokenSource()),
+ ClientOptions: []option.ClientOption{
+ option.WithTokenSource(a.TokenSource()),
},
})
if err != nil {

Powered by Google App Engine
This is Rietveld 408576698