feat: seq conversion failed without exiting

pull/3052/head
withchao 8 months ago
parent e94ce825d6
commit f31d196ae8

@ -3,8 +3,10 @@ package main
import ( import (
"flag" "flag"
"fmt" "fmt"
"github.com/openimsdk/open-im-server/v3/tools/seq/internal" "os"
"time" "time"
"github.com/openimsdk/open-im-server/v3/tools/seq/internal"
) )
func main() { func main() {
@ -17,6 +19,8 @@ func main() {
flag.Parse() flag.Parse()
if err := internal.Main(config, time.Duration(second)*time.Second); err != nil { if err := internal.Main(config, time.Duration(second)*time.Second); err != nil {
fmt.Println("seq task", err) fmt.Println("seq task", err)
os.Exit(1)
return
} }
fmt.Println("seq task success!") fmt.Println("seq task success!")
} }

Loading…
Cancel
Save