summaryrefslogtreecommitdiffstats
path: root/lib/xdsserver/events.go
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2018-01-23 15:31:00 +0100
committerSebastien Douheret <sebastien.douheret@iot.bzh>2018-01-23 15:31:00 +0100
commitdcdee5e2aa05ec07e7e750bea4faad63bce7b668 (patch)
tree68d6755cb7e0bbb1b4fdbdb2e60456d1ef17f30e /lib/xdsserver/events.go
parent297955b744110f67dad475e628bf068ec849b190 (diff)
Reworked SDKs events (introduced sdk-state-change)
Split add/remove/state-change from installing output (AKA SDKManagement event) in order to clearly separate events used to send installation output and sdk config changes. Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'lib/xdsserver/events.go')
-rw-r--r--lib/xdsserver/events.go4
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,
}