resources: Use Events() method instead of raw channel

This makes things easier if we ever split resources out into separate
packages.
This commit is contained in:
James Shubin
2016-10-19 20:08:32 -04:00
parent 3831e9739c
commit 42ff9b803a
9 changed files with 11 additions and 10 deletions

View File

@@ -97,7 +97,8 @@ func (obj *TimerRes) Watch(processChan chan event.Event) error {
case <-ticker.C: // received the timer event
send = true
log.Printf("%v[%v]: received tick", obj.Kind(), obj.GetName())
case event := <-obj.events:
case event := <-obj.Events():
cuid.SetConverged(false)
if exit, _ := obj.ReadEvent(&event); exit {
return nil