Skip to content

Commit

Permalink
Merge pull request #335 from chendh521/master
Browse files Browse the repository at this point in the history
load template resources every interval
  • Loading branch information
kelseyhightower committed Oct 24, 2015
2 parents 6b01b27 + b9abb39 commit 46d3c69
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 46d3c69

Please sign in to comment.