write tasks on loadaccountactions

This commit is contained in:
Radu Ioan Fericean
2015-12-18 17:48:03 +02:00
parent c18d2ce2ba
commit 115fe8a1ad
3 changed files with 17 additions and 2 deletions

View File

@@ -96,7 +96,7 @@ func (s *Scheduler) loadActionPlans() {
s.Lock()
defer s.Unlock()
// limit the number of concurrent tasks
var limit = make(chan bool, 10)
limit := make(chan bool, 10)
// execute existing tasks
for {
task, err := s.storage.PopTask()