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

Unified Diff: client/cmd/logdog_butler/main.go

Issue 1610993002: LogDog: Add collector service implementation. (Closed) Base URL: https://github.com/luci/luci-go@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « no previous file | client/cmd/logdog_butler/output_pubsub.go » ('j') | client/cmd/logdog_butler/output_pubsub.go » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/cmd/logdog_butler/main.go
diff --git a/client/cmd/logdog_butler/main.go b/client/cmd/logdog_butler/main.go
index 605d68810444f1ed5818980478154537d47e428d..46999cf251de352a959851a4d6c2b3ffd9f5aad5 100644
--- a/client/cmd/logdog_butler/main.go
+++ b/client/cmd/logdog_butler/main.go
@@ -27,7 +27,6 @@ import (
"github.com/luci/luci-go/common/paniccatcher"
"github.com/maruel/subcommands"
"golang.org/x/net/context"
- "google.golang.org/cloud"
)
const (
@@ -134,19 +133,6 @@ func (a *butlerApplication) authenticatedClient(ctx context.Context) (*http.Clie
return a.client, nil
}
-func (a *butlerApplication) authenticatedContext(ctx context.Context, project string) (context.Context, error) {
dnj (Google) 2016/01/21 04:36:24 No longer needed w/ Pub/Sub changes.
- if project == "" {
- return nil, errors.New("must supply a project name")
- }
-
- client, err := a.authenticatedClient(ctx)
- if err != nil {
- return nil, err
- }
-
- return cloud.WithContext(ctx, project, client), nil
-}
-
func (a *butlerApplication) configOutput() (output.Output, error) {
factory := a.outputConfig.getFactory()
if factory == nil {
« no previous file with comments | « no previous file | client/cmd/logdog_butler/output_pubsub.go » ('j') | client/cmd/logdog_butler/output_pubsub.go » ('J')

Powered by Google App Engine
This is Rietveld 408576698