Skip to content

Commit

Permalink
load template resources every interval
Browse files Browse the repository at this point in the history
  • Loading branch information
chendh521 committed Sep 16, 2015
1 parent be20ca7 commit b9abb39
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ func IntervalProcessor(config Config, stopChan, doneChan chan bool, errChan chan

func (p *intervalProcessor) Process() {
defer close(p.doneChan)
ts, err := getTemplateResources(p.config)
if err != nil {
log.Fatal(err.Error())
return
}
for {
ts, err := getTemplateResources(p.config)
if err != nil {
log.Fatal(err.Error())
break
}
process(ts)
select {
case <-p.stopChan:
Expand Down

0 comments on commit b9abb39

Please sign in to comment.