mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-03 22:45:13 +08:00
初始化对象
This commit is contained in:
@@ -38,6 +38,9 @@ type EventProcessor struct {
|
||||
}
|
||||
|
||||
func (slf *EventProcessor) RegEventReciverFunc(eventType EventType,reciverFunc EventReciverFunc){
|
||||
if slf.mapEventReciverFunc == nil {
|
||||
slf.mapEventReciverFunc = map[EventType]EventReciverFunc{}
|
||||
}
|
||||
slf.mapEventReciverFunc[eventType] = reciverFunc
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user