proc/worker/client.go
func (w *Worker) ClientPreServiceUnsuspend(job *data.Job) error {
	logger := w.logger.Add("method", "ClientPreServiceUnsuspend",
		"job", job)

	ch, err := w.relatedChannel(logger, job, data.JobClientPreServiceUnsuspend)
	if err != nil {
		return err
	}

	logger = logger.Add("channel", ch)

	ch.ServiceStatus = data.ServiceActivating
	changedTime := time.Now()
	ch.ServiceChangedTime = &changedTime
	return w.saveRecord(logger, w.db.Querier, ch)
}
func (w *Worker) ClientPreServiceUnsuspend(job *data.Job) error {
	logger := w.logger.Add("method", "ClientPreServiceUnsuspend",
		"job", job)

	ch, err := w.relatedChannel(logger, job, data.JobClientPreServiceUnsuspend)
	if err != nil {
		return err
	}

	logger = logger.Add("channel", ch)

	ch.ServiceStatus = data.ServiceActivating
	changedTime := time.Now()
	ch.ServiceChangedTime = &changedTime
	return w.saveRecord(logger, w.db.Querier, ch)
}
func ( w * Worker ) ClientPreServiceUnsuspend ( job * data . Job ) error { logger := w . logger . Add ( " " , " " , " " , job ) ch , err := w . relatedChannel ( logger , job , data . JobClientPreServiceUnsuspend ) if err != nil { return err } logger = logger . Add ( " " , ch ) ch . ServiceStatus = data . ServiceActivating changedTime := time . Now ( ) ch . ServiceChangedTime = & changedTime return w . saveRecord ( logger , w . db . Querier , ch ) }
// ClientPreServiceUnsuspend activates service.
ClientPreServiceUnsuspend activates service .