fix build

This commit is contained in:
criyle 2020-06-04 00:19:06 -04:00
parent f61a319cd6
commit 15a9da6878

View File

@ -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 {