新增单进程模式
This commit is contained in:
1 parent
669a524153
commit
6136e57919
73 files changed
+1900
-153
No files matched your search
+3
-1
@@ -6,6 +6,7 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
cfg "hk4e/common/config"
|
||||
"hk4e/robot/app"
|
||||
)
|
||||
|
||||
@@ -18,7 +19,8 @@ var VERSION = "UNKNOWN"
|
||||
func main() {
|
||||
flag.Parse()
|
||||
app.APPVERSION = VERSION
|
||||
err := app.Run(context.TODO(), *config)
|
||||
cfg.InitConfig(*config)
|
||||
err := app.Run(context.TODO())
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
os.Exit(1)
|
||||
|
||||
Reference in new issue
Block a user