aboutsummaryrefslogtreecommitdiffhomepage
path: root/worker
diff options
context:
space:
mode:
Diffstat (limited to 'worker')
-rw-r--r--worker/exec.go8
-rw-r--r--worker/models.go6
2 files changed, 7 insertions, 7 deletions
diff --git a/worker/exec.go b/worker/exec.go
index 2ef16fa..10bc99a 100644
--- a/worker/exec.go
+++ b/worker/exec.go
@@ -95,7 +95,7 @@ func execSwiftCompile(
if err := os.WriteFile(inPath, []byte(code), 0644); err != nil {
return swiftCompileResponseData{
- Result: resultInternalError,
+ Status: resultInternalError,
Stdout: "",
Stderr: err.Error(),
}
@@ -116,7 +116,7 @@ func execSwiftCompile(
)
return swiftCompileResponseData{
- Result: convertCommandErrorToResultType(err),
+ Status: convertCommandErrorToResultType(err),
Stdout: stdout,
Stderr: stderr,
}
@@ -148,7 +148,7 @@ func execWasmCompile(
)
return wasmCompileResponseData{
- Result: convertCommandErrorToResultType(err),
+ Status: convertCommandErrorToResultType(err),
Stdout: stdout,
Stderr: stderr,
}
@@ -179,7 +179,7 @@ func execTestRun(
)
return testRunResponseData{
- Result: convertCommandErrorToResultType(err),
+ Status: convertCommandErrorToResultType(err),
Stdout: stdout,
Stderr: stderr,
}
diff --git a/worker/models.go b/worker/models.go
index b838fe0..a7310bd 100644
--- a/worker/models.go
+++ b/worker/models.go
@@ -33,7 +33,7 @@ func (req *swiftCompileRequestData) validate() error {
}
type swiftCompileResponseData struct {
- Result string `json:"result"`
+ Status string `json:"status"`
Stdout string `json:"stdout"`
Stderr string `json:"stderr"`
}
@@ -44,7 +44,7 @@ type wasmCompileRequestData struct {
}
type wasmCompileResponseData struct {
- Result string `json:"result"`
+ Status string `json:"status"`
Stdout string `json:"stdout"`
Stderr string `json:"stderr"`
}
@@ -78,7 +78,7 @@ func (req *testRunRequestData) validate() error {
}
type testRunResponseData struct {
- Result string `json:"result"`
+ Status string `json:"status"`
Stdout string `json:"stdout"`
Stderr string `json:"stderr"`
}