mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-03 22:45:13 +08:00
更新SetGoRoutineNum函数名
This commit is contained in:
@@ -331,7 +331,7 @@ func (slf *TestService1) OnInit() error {
|
||||
fmt.Printf("TestService1 OnInit.\n")
|
||||
|
||||
//打开多线程处理模式,10个协程并发处理
|
||||
slf.SetGoRouterNum(10)
|
||||
slf.SetGoRoutineNum(10)
|
||||
return nil
|
||||
}
|
||||
```
|
||||
@@ -356,7 +356,7 @@ func (slf *TestService1) OnInit() error {
|
||||
|
||||
slf.AfterFunc(time.Second*2,slf.Loop)
|
||||
//打开多线程处理模式,10个协程并发处理
|
||||
//slf.SetGoRouterNum(10)
|
||||
//slf.SetGoRoutineNum(10)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user