zhangqian
2023-08-31 5f8cefce6c5c2bdbdabb6388cf72d86f79e1b531
main.go
@@ -7,6 +7,7 @@
   "apsClient/nsq"
   "apsClient/pkg/logx"
   "apsClient/router"
   "apsClient/service/plc_address"
   "fmt"
   "net/http"
   "os"
@@ -34,7 +35,8 @@
      logx.Errorf("crontab task Init err:%v", err)
      return
   }
   //加载plc写入地址
   plc_address.LoadAddressFromFile()
   go shutdown()
   logx.Infof("apsClient start serve...")
   server := &http.Server{