You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

21 lines
412 B

package service
import (
"context"
"time"
"go-common/app/job/openplatform/article/dao"
"go-common/library/log"
)
func (s *Service) updateSortproc() {
for {
if err := s.UpdateSort(context.TODO()); err != nil {
log.Error("s.UpdateSort error(%+v)", err)
dao.PromError("service:刷新分区投稿")
} else {
dao.PromInfo("service:刷新分区投稿")
}
time.Sleep(s.updateSortInterval)
}
}