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

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

Issue 2355203002: Rename Topic's Name method to String. (Closed)
Patch Set: Created 4 years, 3 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 | logdog/client/butler/output/pubsub/pubsubOutput_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: logdog/client/butler/output/pubsub/pubsubOutput.go
diff --git a/logdog/client/butler/output/pubsub/pubsubOutput.go b/logdog/client/butler/output/pubsub/pubsubOutput.go
index aedaedd0d1e8e0bcda8cd43cac857c06cb6315bb..d405d808fce35daa495d33ccd38ec9e23a197a9a 100644
--- a/logdog/client/butler/output/pubsub/pubsubOutput.go
+++ b/logdog/client/butler/output/pubsub/pubsubOutput.go
@@ -27,8 +27,8 @@ import (
//
// pubsub.Topic implements Topic.
type Topic interface {
- // Name returns the name of the topic.
- Name() string
+ // String returns the name of the topic.
+ String() string
// Publish mirrors the pubsub.Connection Publish method.
Publish(context.Context, ...*pubsub.Message) ([]string, error)
@@ -90,7 +90,7 @@ func New(ctx context.Context, c Config) output.Output {
}
func (o *pubSubOutput) String() string {
- return fmt.Sprintf("pubsub(%s)", o.Topic.Name())
+ return fmt.Sprintf("pubsub(%s)", o.Topic.String())
}
func (o *pubSubOutput) SendBundle(bundle *logpb.ButlerLogBundle) error {
« no previous file with comments | « no previous file | logdog/client/butler/output/pubsub/pubsubOutput_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698