[REV] change topic, from builder to worker

This commit is contained in:
GLYASAI 2018-12-02 21:24:04 +08:00
parent 0ad17f4888
commit 3d97bf4094

View File

@ -23,6 +23,7 @@ import (
"github.com/Sirupsen/logrus" "github.com/Sirupsen/logrus"
api_db "github.com/goodrain/rainbond/api/db" api_db "github.com/goodrain/rainbond/api/db"
"github.com/goodrain/rainbond/mq/api/grpc/client" "github.com/goodrain/rainbond/mq/api/grpc/client"
"github.com/goodrain/rainbond/worker/discover"
"github.com/pquerna/ffjson/ffjson" "github.com/pquerna/ffjson/ffjson"
) )
@ -36,7 +37,7 @@ func sendTask(body map[string]interface{}, taskType string, mqClient *client.MQC
TaskBody: bodyJ, TaskBody: bodyJ,
User: "define", User: "define",
} }
eq, errEq := api_db.BuildTaskBuild(bs) eq, errEq := api_db.BuildTaskBuildWithTopic(bs, discover.WTOPIC)
if errEq != nil { if errEq != nil {
logrus.Errorf("build equeue stop request error, %v", errEq) logrus.Errorf("build equeue stop request error, %v", errEq)
return errEq return errEq