push.go 315 B

123456789101112131415
  1. package service
  2. import (
  3. "context"
  4. "go-common/library/log"
  5. )
  6. // add a new resource ID into the to push list
  7. func (s *Service) newPush(ctx context.Context, resID int) (err error) {
  8. if err = s.dao.ZAddPush(ctx, resID); err != nil {
  9. log.Error("NewPush Redis for ResID: %d, Error: %v", resID, err)
  10. }
  11. return
  12. }