优化服务发现

This commit is contained in:
boyce
2021-05-06 16:09:27 +08:00
parent 1007845e95
commit bbab004f65
5 changed files with 10 additions and 9 deletions

View File

@@ -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(){