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

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

Issue 2697223002: Fix LogDog client queries without state. (Closed)
Patch Set: Created 3 years, 10 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/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 18b02f40a8c6679ccb41b85af3936401d732bc95..8b8feb66e629366f4b1cbc840e0f2652bfd84784 100644
--- a/logdog/client/coordinator/list.go
+++ b/logdog/client/coordinator/list.go
@@ -5,8 +5,6 @@
package coordinator
import (
- "fmt"
-
"github.com/luci/luci-go/logdog/api/endpoints/coordinator/logs/v1"
"github.com/luci/luci-go/logdog/common/types"
"github.com/luci/luci-go/luci_config/common/cfgtypes"
@@ -88,10 +86,7 @@ func (c *Client) List(ctx context.Context, project cfgtypes.ProjectName, pathBas
case logdog.ListResponse_Component_STREAM:
lr.Stream = true
if s.State != nil {
- 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)
- }
+ lr.State = loadLogStream(resp.Project, lr.FullPath(), s.State, s.Desc)
}
case logdog.ListResponse_Component_PROJECT:
« no previous file with comments | « no previous file | logdog/client/coordinator/query.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698