This commit is contained in:
wangchuxiao
2023-03-13 15:39:47 +08:00
parent 6187b15a88
commit eb946ad181
18 changed files with 82 additions and 128 deletions
+1 -4
View File
@@ -3,14 +3,11 @@ package main
import (
"OpenIM/internal/tools"
"OpenIM/pkg/common/cmd"
"fmt"
"os"
)
func main() {
cronTaskCmd := cmd.NewCronTaskCmd()
if err := cronTaskCmd.Exec(tools.StartCronTask); err != nil {
fmt.Println(err)
os.Exit(1)
panic(err.Error())
}
}