This commit is contained in:
Soam Vasani
2016-12-15 19:48:45 -08:00
parent 53c49d1485
commit 215f4fc30f
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -199,6 +199,10 @@ func (ws *watchSubscription) eventDispatchLoop(poster *Poster) {
if err != nil {
log.Println("Failed to serialize object: %v", err)
}
// TODO re: objtype -- mabye we should use runtime
// type info to get the obj type, in case the watch
// can send multiple types of objects (it probably
// sends a different type when ev.Type == ERROR?)
poster.Post(string(ev.Type), ws.Watch.ObjType, ws.Watch.Url, &buf)
}
if !atomic.LoadInt32(ws.stopped) {