Commit a280fbcd by 孙龙

init

parent 5704757e
Showing with 1 additions and 1 deletions
...@@ -81,7 +81,7 @@ func main() { ...@@ -81,7 +81,7 @@ func main() {
for{ for{
var wg sync.WaitGroup var wg sync.WaitGroup
fmt.Println("开始执行任务....") fmt.Println("开始执行任务....")
for i := 0;i<2;i++{ for i := 0;i<3;i++{
wg.Add(1) wg.Add(1)
go func(wg *sync.WaitGroup){ go func(wg *sync.WaitGroup){
mq := rabbitmq.New(queueExchange) mq := rabbitmq.New(queueExchange)
......
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