mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
1
This commit is contained in:
parent
a3e41c6dff
commit
0d2a478fb2
@ -73,10 +73,10 @@ func main() {
|
|||||||
putCmd(cmd, true, cron.Start)
|
putCmd(cmd, true, cron.Start)
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
if err := cmd.run(ctx); err != nil {
|
if err := cmd.run(ctx); err != nil {
|
||||||
fmt.Println(err)
|
_, _ = fmt.Fprintf(os.Stderr, "server exit %s", err)
|
||||||
|
os.Exit(1)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
fmt.Println("exit")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func newCmds(confPath string) *cmds {
|
func newCmds(confPath string) *cmds {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user