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

Unified Diff: logdog/client/coordinator/client.go

Issue 2671633002: Update LogDog client to export its host. (Closed)
Patch Set: Created 3 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 | logdog/client/coordinator/stream.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: logdog/client/coordinator/client.go
diff --git a/logdog/client/coordinator/client.go b/logdog/client/coordinator/client.go
index 8f06f7ee780a9f8df6ab96fdec31451022a55057..edaaf617d07f786aca6aaf6aecd9914ce5a960b5 100644
--- a/logdog/client/coordinator/client.go
+++ b/logdog/client/coordinator/client.go
@@ -26,12 +26,15 @@ var (
type Client struct {
// C is the underlying LogsClient interface.
C logdog.LogsClient
+ // Host is the LogDog host. This is loaded from the pRPC client in NewClient.
+ Host string
}
// NewClient returns a new Client instance bound to a pRPC Client.
func NewClient(c *prpc.Client) *Client {
return &Client{
- C: logdog.NewLogsPRPCClient(c),
+ C: logdog.NewLogsPRPCClient(c),
+ Host: c.Host,
}
}
« no previous file with comments | « no previous file | logdog/client/coordinator/stream.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698