mirror of
https://github.com/criyle/go-judge.git
synced 2025-11-04 14:50:02 +08:00
fix build
This commit is contained in:
parent
f61a319cd6
commit
15a9da6878
@ -4,6 +4,7 @@ import "C"
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"encoding/json"
|
||||
"log"
|
||||
"os"
|
||||
@ -87,7 +88,7 @@ func Exec(e *C.char) *C.char {
|
||||
if err != nil {
|
||||
return nil
|
||||
}
|
||||
rt := <-work.Submit(r)
|
||||
rt := <-work.Submit(context.TODO(), r)
|
||||
ret := model.ConvertResponse(rt)
|
||||
var buf bytes.Buffer
|
||||
if err := json.NewEncoder(&buf).Encode(ret); err != nil {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user