Skip to content

Commit

Permalink
Update costs outside of standard practice
Browse files Browse the repository at this point in the history
  • Loading branch information
brotherlogic committed Dec 29, 2022
1 parent 625cef9 commit d203f5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wantslistutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ func recordMetrics(config *pb.Config) {
func (s *Server) prodProcess(ctx context.Context, config *pb.Config) error {
s.CtxLog(ctx, fmt.Sprintf("Running pproc: %v", time.Since(s.lastRun)))
if time.Since(s.lastRun) < time.Hour {
for _, list := range config.GetLists() {
s.updateCosts(ctx, list)
}
return s.save(ctx, config)
}
s.lastRun = time.Now()
Expand Down

0 comments on commit d203f5a

Please sign in to comment.