Commit c67b8c9c by Joneq

完成常驻进程

parent 4d633ae9
Showing with 3 additions and 2 deletions
......@@ -54,12 +54,13 @@ func main() {
//获取config
logic.GetConfig()
if runtype != "one" {
flag.StringVar(&runtype, "runtype", "one", "default config path")
if runtype == "one" {
//设置协程数量
wg.Add(1)
flag.StringVar(&runtype, "runtype", "one", "default config path")
c := context.Background()
go InsertRecord(c)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment