18 lines
355 B
Go
18 lines
355 B
Go
package main
|
|
|
|
import (
|
|
syncSvc "dataengine/service/sync"
|
|
|
|
_ "github.com/gogf/gf/contrib/drivers/pgsql/v2"
|
|
"github.com/gogf/gf/v2/os/gctx"
|
|
"github.com/sirupsen/logrus"
|
|
)
|
|
|
|
func main() {
|
|
ctx := gctx.New()
|
|
logrus.Info("独立补偿调度器启动")
|
|
syncSvc.StartCompensation(ctx)
|
|
// StartCompensation 内部有永续循环,不会返回
|
|
select {}
|
|
}
|