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

Unified Diff: logdog/client/coordinator/query.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/coordinator/list.go ('k') | logdog/client/coordinator/query_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: logdog/client/coordinator/query.go
diff --git a/logdog/client/coordinator/query.go b/logdog/client/coordinator/query.go
index c7e61b235b1b6a12e4c063a80cbe020963dc1d67..a7d528fbc16bc76080190ba7eebec74dea983db5 100644
--- a/logdog/client/coordinator/query.go
+++ b/logdog/client/coordinator/query.go
@@ -5,6 +5,7 @@
package coordinator
import (
+ "fmt"
"time"
"github.com/luci/luci-go/common/config"
@@ -155,8 +156,13 @@ func (c *Client) Query(ctx context.Context, project config.ProjectName, path str
return normalizeError(err)
}
- for _, s := range resp.Streams {
- if !cb(loadLogStream(resp.Project, types.StreamPath(s.Path), s.State, s.Desc)) {
+ for i, s := range resp.Streams {
+ st, err := loadLogStream(resp.Project, types.StreamPath(s.Path), s.State, s.Desc)
+ if err != nil {
+ return fmt.Errorf("failed to load stream state #%d: %v", i, err)
+ }
+
+ if !cb(st) {
return nil
}
}
« no previous file with comments | « logdog/client/coordinator/list.go ('k') | logdog/client/coordinator/query_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698