|
@@ -45,7 +45,7 @@ func main() {
|
|
|
mongo.Database(os.Getenv("MONGO_DSN"))
|
|
mongo.Database(os.Getenv("MONGO_DSN"))
|
|
|
|
|
|
|
|
// 启动任务
|
|
// 启动任务
|
|
|
- //task.VersionInit().Exec()
|
|
|
|
|
|
|
+ //task.VersionInit(task.VersionInit, 5*time.Minute)
|
|
|
task.Run(task.SubscribeInit(), 1*time.Second)
|
|
task.Run(task.SubscribeInit(), 1*time.Second)
|
|
|
|
|
|
|
|
if os.Getenv("GIN_MODE") == "release" {
|
|
if os.Getenv("GIN_MODE") == "release" {
|