Commit 68e95dce by mushishixian

整合启动

parent 952e2e69
Showing with 4 additions and 3 deletions
package main
package sync_audit_status
import (
"encoding/json"
......@@ -165,7 +165,7 @@ func (t *RecvPro) FailAction(dataByte []byte) error {
return nil
}
func main() {
func Sync() {
defer func() {
if err := recover(); err != nil {
service.SendDingTalkRobotToApi(fmt.Sprintf("%s", err))
......
package main
import (
"scm_server/cmd/queue/sync_audit_status"
"scm_server/cmd/queue/sync_customer"
"scm_server/cmd/queue/sync_goods"
"scm_server/cmd/queue/sync_in_store"
......@@ -58,7 +59,7 @@ func main() {
go sync_in_store.Sync()
go sync_out_store.Sync()
go sync_status.Sync()
// go sync_audit_status.Sync()
go sync_audit_status.Sync()
//定时请求open falcon证明自己没挂
for {
pushAlive()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment