func (s *Session) doRequest(req *message.Request, conf *config.ServantConfig) (string, error) { err := req.ExpandServantVars() if err != nil { console.Display("CTS015E", err.Error()) res := s.createErrorResponse(req, err) return res.GenerateJSON() } stCh := make(chan string, 1) go s.waitAndSendStartTime(stCh) defer close(stCh) res := s.doJobRequest(req, conf, stCh) return res.GenerateJSON() }