yinbangzhong
2024-06-14 777978a2a2ac2232050ba44521f107b85646081b
main.go
@@ -10,6 +10,7 @@
   "speechAnalysis/models"
   "speechAnalysis/pkg/logx"
   "speechAnalysis/router"
   "speechAnalysis/service"
   "syscall"
   "time"
)
@@ -31,6 +32,11 @@
      return
   }
   //监控预加载音频文件
   cxt, cancel := context.WithCancel(context.Background())
   defer cancel()
   go service.PreLoad(cxt)
   logx.Infof("server start serve...")
   server := &http.Server{
      Addr:         ":" + conf.WebConf.Port,