Skip to content

Commit

Permalink
Update CDs every minute
Browse files Browse the repository at this point in the history
  • Loading branch information
brotherlogic committed Feb 27, 2024
1 parent f178b89 commit da6b858
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recordadderapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func (s *Server) ProcAdded(ctx context.Context, req *pb.ProcAddedRequest) (*pb.P
val, ok := conf.GetAddedMap()[req.GetType()]
//s.CtxLog(ctx,fmt.Sprintf("ADDED the MAP: %v (%v)", time.Since(time.Unix(val, 0)), time.Unix(val, 0)))
if !ok || time.Since(time.Unix(val, 0)) > time.Hour*24 ||
(time.Since(time.Unix(val, 0)) > time.Hour*6 && req.GetType() == "FILE_CD") ||
(time.Since(time.Unix(val, 0)) > time.Minute && req.GetType() == "FILE_CD") ||
(time.Since(time.Unix(val, 0)) > time.Hour*6 && req.GetType() == "FILE_12_INCH") {
//s.CtxLog(ctx,"Adding!")

Expand Down

0 comments on commit da6b858

Please sign in to comment.