移除redis
Former-commit-id: f15cf213cd5734b55d11db580fefca63b98f642f
This commit is contained in:
parent
4817c96ba7
commit
0f837a7c62
|
@ -2,7 +2,6 @@ package core
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"encoding/json"
|
|
||||||
"github.com/ghodss/yaml"
|
"github.com/ghodss/yaml"
|
||||||
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/mqs"
|
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/internal/mqs"
|
||||||
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/pkg/response"
|
"gitlink.org.cn/jcce-pcm/pcm-coordinator/api/pkg/response"
|
||||||
|
@ -62,18 +61,6 @@ func (l *CommitTaskLogic) CommitTask(req *types.CommitTaskReq) error {
|
||||||
Metadata: req.YamlList,
|
Metadata: req.YamlList,
|
||||||
Replicas: req.Replicas,
|
Replicas: req.Replicas,
|
||||||
}
|
}
|
||||||
// 将任务数据转换成消息体
|
mqs.InsQueue.Beta.Add(&task)
|
||||||
reqMessage, err := json.Marshal(task)
|
|
||||||
if err != nil {
|
|
||||||
logx.Error(err)
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
mqs.InsQueue.Beta.Add(string(reqMessage))
|
|
||||||
//publish := l.svcCtx.RedisClient.Publish(context.Background(), "cloud", reqMessage)
|
|
||||||
//if publish.Err() != nil {
|
|
||||||
// return publish.Err()
|
|
||||||
//}
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue