优化Event增加接口支持

This commit is contained in:
boyce
2021-01-19 10:35:06 +08:00
parent 8155eb592e
commit 3c5c424996
4 changed files with 31 additions and 24 deletions

View File

@@ -128,9 +128,9 @@ func (s *Service) Run() {
}
case ev := <- eventChan:
if s.profiler!=nil {
analyzer = s.profiler.Push(fmt.Sprintf("[Event]%d", int(ev.Type)))
analyzer = s.profiler.Push(fmt.Sprintf("[Event]%d", int(ev.GetEventType())))
}
s.eventProcessor.EventHandler(&ev)
s.eventProcessor.EventHandler(ev)
if analyzer!=nil {
analyzer.Pop()
analyzer = nil