diff options
Diffstat (limited to 'lib/xdsserver/events.go')
-rw-r--r-- | lib/xdsserver/events.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/xdsserver/events.go b/lib/xdsserver/events.go index 4ae1ff3..2528725 100644 --- a/lib/xdsserver/events.go +++ b/lib/xdsserver/events.go @@ -88,7 +88,7 @@ func (e *Events) UnRegister(evName, sessionID string) error { } // Emit Used to manually emit an event -func (e *Events) Emit(evName string, data interface{}, fromSid string) error { +func (e *Events) Emit(evName string, data interface{}, fromSessID string) error { var firstErr error if _, ok := e.eventsMap[evName]; !ok { @@ -108,7 +108,7 @@ func (e *Events) Emit(evName string, data interface{}, fromSid string) error { } msg := xsapiv1.EventMsg{ Time: time.Now().String(), - FromSessionID: fromSid, + FromSessionID: fromSessID, Type: evName, Data: data, } |