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

Unified Diff: appengine/cmd/dm/frontend/init.go

Issue 1537883002: Initial distributor implementation (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: work in progress Created 4 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
Index: appengine/cmd/dm/frontend/init.go
diff --git a/appengine/cmd/dm/frontend/init.go b/appengine/cmd/dm/frontend/init.go
index c597e0f533ca38ef643e0be1cc23cd75791bbfc4..14c112517e6c40002d45b7c0906e47355cf8f6bd 100644
--- a/appengine/cmd/dm/frontend/init.go
+++ b/appengine/cmd/dm/frontend/init.go
@@ -9,6 +9,8 @@ import (
"github.com/GoogleCloudPlatform/go-endpoints/endpoints"
"github.com/julienschmidt/httprouter"
+ "github.com/luci/luci-go/appengine/cmd/dm/distributor"
+ "github.com/luci/luci-go/appengine/cmd/dm/distributor/impl/swarmingV1"
dm "github.com/luci/luci-go/appengine/cmd/dm/service"
"github.com/luci/luci-go/appengine/tumble"
)
@@ -16,6 +18,9 @@ import (
var myTumble = tumble.DefaultConfig()
func init() {
+ reg := distributor.Registry{}
+ swarmingV1.Register(reg)
+
srv := endpoints.NewServer("")
err := dm.RegisterEndpointsService(srv)
if err != nil {

Powered by Google App Engine
This is Rietveld 408576698