1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-06-07 06:11:56 +00:00

update fair

This commit is contained in:
Newnius 2020-05-31 10:47:43 +08:00
parent 87211ef66b
commit 6681a2ae00

View File

@ -42,7 +42,10 @@ func serverAPI(w http.ResponseWriter, r *http.Request) {
} else {
scheduler.Schedule(job)
}
js, _ := json.Marshal(msgSubmit)
js, err := json.Marshal(msgSubmit)
if err != nil {
log.Warn(err)
}
w.Header().Set("Content-Type", "application/json")
w.Write(js)
break