超时任务多实例优化

This commit is contained in:
yml2213
2026-06-14 03:14:43 +08:00
parent c255c142c5
commit 607d2415a1
2 changed files with 66 additions and 8 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ func main() {
jobCtx, stopJobs := context.WithCancel(context.Background())
defer stopJobs()
if deps.DB != nil {
ordertimeout.New(deps.DB, logger).Start(jobCtx)
ordertimeout.New(deps.DB, deps.Redis, logger).Start(jobCtx)
}
server := &http.Server{
Addr: cfg.AppAddr,