remove jobs.Srv and other jobs-related globals (#7535)

Этот коммит содержится в:
Chris
2017-09-29 04:29:29 -05:00
коммит произвёл George Goldberg
родитель cb33179998
Коммит 4e79d2d4d0
16 изменённых файлов: 140 добавлений и 132 удалений

Просмотреть файл

@@ -52,7 +52,7 @@ func createJob(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
if job, err := app.CreateJob(job); err != nil {
if job, err := c.App.CreateJob(job); err != nil {
c.Err = err
return
} else {
@@ -109,7 +109,7 @@ func cancelJob(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
if err := app.CancelJob(c.Params.JobId); err != nil {
if err := c.App.CancelJob(c.Params.JobId); err != nil {
c.Err = err
return
}