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

@@ -167,7 +167,7 @@ func (obj *PkgRes) Watch(processChan chan event.Event) error {
send = true
dirty = true
case event := <-obj.events:
case event := <-obj.Events():
cuid.SetConverged(false)
if exit, send = obj.ReadEvent(&event); exit {
return nil // exit