aboutsummaryrefslogtreecommitdiffhomepage
path: root/worker/exec.go
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-07 22:52:44 +0900
committernsfisis <nsfisis@gmail.com>2024-08-08 04:02:37 +0900
commit4295abfd48ad8ce217b251d07102deb8aee413d5 (patch)
treeb998f6f6c61a07760f5335e4aeeecf3893fd3758 /worker/exec.go
parent5a2217f7a9d01b925c3db6491a363e6e4db9ca42 (diff)
downloadiosdc-japan-2024-albatross-4295abfd48ad8ce217b251d07102deb8aee413d5.tar.gz
iosdc-japan-2024-albatross-4295abfd48ad8ce217b251d07102deb8aee413d5.tar.zst
iosdc-japan-2024-albatross-4295abfd48ad8ce217b251d07102deb8aee413d5.zip
refactor: rename task result's "result" to "status" for consistency
Diffstat (limited to 'worker/exec.go')
-rw-r--r--worker/exec.go8
1 files changed, 4 insertions, 4 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,
}