- up
This commit is contained in:
@@ -123,7 +123,7 @@ func (e *EventHub) eventRoutine() {
|
|||||||
e.removeChan(notifyChan)
|
e.removeChan(notifyChan)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
globals.SugarLogger.Warnf("eventRoutine, eventCategory:%s producer is nil")
|
globals.SugarLogger.Warnf("eventRoutine, eventCategory:%s producer is nil", eventCategory)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -207,7 +207,7 @@ func (e *EventHub) PostNewEvent(eventCategory string, event *EventInfo) {
|
|||||||
newEvent.Type = composeEventType(eventCategory, event.Type)
|
newEvent.Type = composeEventType(eventCategory, event.Type)
|
||||||
e.cmdChan <- &tCmd{
|
e.cmdChan <- &tCmd{
|
||||||
cmdType: cmdNewEvent,
|
cmdType: cmdNewEvent,
|
||||||
data: event,
|
data: &newEvent,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user