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

Unified Diff: milo/appengine/logdog/http.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 | « milo/appengine/logdog/build.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: milo/appengine/logdog/http.go
diff --git a/milo/appengine/logdog/http.go b/milo/appengine/logdog/http.go
index b75a8db69818a5ee60f2f0f695f2bfb69114990c..7298487649a6087b76d060bb4c460ddb03fc0620 100644
--- a/milo/appengine/logdog/http.go
+++ b/milo/appengine/logdog/http.go
@@ -11,6 +11,8 @@ import (
"github.com/julienschmidt/httprouter"
"github.com/luci/luci-go/common/config"
log "github.com/luci/luci-go/common/logging"
+ "github.com/luci/luci-go/grpc/prpc"
+ "github.com/luci/luci-go/logdog/client/coordinator"
"github.com/luci/luci-go/logdog/common/types"
"github.com/luci/luci-go/milo/appengine/settings"
"github.com/luci/luci-go/milo/common/miloerror"
@@ -53,15 +55,19 @@ func (s *AnnotationStream) Render(c context.Context, req *http.Request, p httpro
project: config.ProjectName(p.ByName("project")),
path: types.StreamPath(strings.Trim(p.ByName("path"), "/")),
host: req.FormValue("host"),
-
- logDogClient: http.Client{
- Transport: t,
- },
}
if err := as.normalize(); err != nil {
return nil, err
}
+ // Setup our LogDog client.
+ as.logDogClient = coordinator.NewClient(&prpc.Client{
+ C: &http.Client{
+ Transport: t,
+ },
+ Host: as.host,
+ })
+
// Load the Milo annotation protobuf from the annotation stream.
if err := as.load(c); err != nil {
return nil, err
« no previous file with comments | « milo/appengine/logdog/build.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698