mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-03 22:45:13 +08:00
优化服务发现
This commit is contained in:
@@ -98,6 +98,8 @@ func (s *Service) SetGoRoutineNum(goroutineNum int32) bool {
|
||||
|
||||
func (s *Service) Start() {
|
||||
s.startStatus = true
|
||||
s.eventProcessor.SetEventChannel(0)
|
||||
|
||||
for i:=int32(0);i< s.goroutineNum;i++{
|
||||
s.wg.Add(1)
|
||||
go func(){
|
||||
|
||||
Reference in New Issue
Block a user