func (RQ *RedisQueue) PushVisit(visit *entity.VisitQueue) (*entity.VisitQueue, error) {
	task, err := json.Marshal(visit)
	if err != nil {
		return nil, err
	}

	taskError := RQ.ViewsQueue.PublishBytes(task)
	if taskError != nil {
		return nil, taskError
	}

	return visit, nil
}
// PushVisit push visit to the queue
PushVisit push visit to the queue
// PushVisit push visit to the queue
func (RQ *RedisQueue) PushVisit(visit *entity.VisitQueue) (*entity.VisitQueue, error) {
	task, err := json.Marshal(visit)
	if err != nil {
		return nil, err
	}
	taskError := RQ.ViewsQueue.PublishBytes(task)
	if taskError != nil {
		return nil, taskError
	}
	return visit, nil
}
func ( RQ * RedisQueue ) PushVisit ( visit * entity . VisitQueue ) ( * entity . VisitQueue , error ) { task , err := json . Marshal ( visit ) if err != nil { return nil , err } taskError := RQ . ViewsQueue . PublishBytes ( task ) if taskError != nil { return nil , taskError } return visit , nil }
PushVisit push visit to the queue
PushVisit push visit to the queue