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

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

Issue 2341113002: Update Coordinator client, add datagram assembly. (Closed)
Patch Set: Comments. 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 | « logdog/client/cmd/logdog_cat/subcommandQuery.go ('k') | logdog/client/coordinator/query.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: logdog/client/coordinator/list.go
diff --git a/logdog/client/coordinator/list.go b/logdog/client/coordinator/list.go
index 46c2538af229946d6e28bca9c5924af8896a2543..9e2fcce767b4f59c74cbcdc18a95612db23dab12 100644
--- a/logdog/client/coordinator/list.go
+++ b/logdog/client/coordinator/list.go
@@ -5,6 +5,8 @@
package coordinator
import (
+ "fmt"
+
"github.com/luci/luci-go/common/config"
"github.com/luci/luci-go/logdog/api/endpoints/coordinator/logs/v1"
"github.com/luci/luci-go/logdog/common/types"
@@ -86,7 +88,10 @@ func (c *Client) List(ctx context.Context, project config.ProjectName, pathBase
case logdog.ListResponse_Component_STREAM:
lr.Stream = true
if s.State != nil {
- lr.State = loadLogStream(resp.Project, lr.FullPath(), s.State, s.Desc)
+ lr.State, err = loadLogStream(resp.Project, lr.FullPath(), s.State, s.Desc)
+ if err != nil {
+ return fmt.Errorf("failed to load stream state: %v", err)
+ }
}
case logdog.ListResponse_Component_PROJECT:
« no previous file with comments | « logdog/client/cmd/logdog_cat/subcommandQuery.go ('k') | logdog/client/coordinator/query.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698