mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-06-07 22:31:55 +00:00
update fair
This commit is contained in:
parent
87211ef66b
commit
6681a2ae00
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user