From d203f5a4983bb23f929ec4bdfb8e434cb8b2ac53 Mon Sep 17 00:00:00 2001 From: Simon Tucker Date: Thu, 29 Dec 2022 13:21:59 -0800 Subject: [PATCH] Update costs outside of standard practice --- wantslistutils.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wantslistutils.go b/wantslistutils.go index 102f4ed..d96fd2c 100644 --- a/wantslistutils.go +++ b/wantslistutils.go @@ -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()