mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
17 lines
240 B
Go
17 lines
240 B
Go
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)
|
|
}
|
|
}
|