Skip to content

Commit

Permalink
Merge pull request #19 from brotherlogic/log
Browse files Browse the repository at this point in the history
log
  • Loading branch information
brotherlogic committed Sep 27, 2019
2 parents dfe3fbf + fef08fd commit f8666fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recordadder.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ func (s *Server) GetState() []*pbg.State {
}

func (s *Server) runTimedTask(ctx context.Context) (time.Time, error) {
s.Log("Running the timed task")
err := s.processQueue(ctx)

// Wait 24 hours between additions
return time.Now().Add(time.Minute * 5), nil
return time.Now().Add(time.Minute * 5), err
}

func main() {
Expand Down

0 comments on commit f8666fc

Please sign in to comment.