duxin 2 жил өмнө
parent
commit
230db5dda7
1 өөрчлөгдсөн 3 нэмэгдсэн , 3 устгасан
  1. 3 3
      src/jfw/front/tags.go

+ 3 - 3
src/jfw/front/tags.go

@@ -48,10 +48,10 @@ var reqLimitInit *reqLimit
 
 func init() {
 	xweb.AddAction(&Tags{})
-	//创建执行池 等待池
-	doPool := make(chan struct{}, qu.IntAll(config.Sysconfig["awaitNum"]))
-	do := qu.IntAll(config.Sysconfig["awaitNum"])
+	do := qu.IntAll(config.Sysconfig["executionNum"])
 	wait := qu.IntAll(config.Sysconfig["awaitNum"])
+	//创建执行池 等待池
+	doPool := make(chan struct{}, do)
 	for i := 0; i < do; i++ {
 		doPool <- struct{}{}
 	}