aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/taskqueue
diff options
context:
space:
mode:
Diffstat (limited to 'backend/taskqueue')
-rw-r--r--backend/taskqueue/processor.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/backend/taskqueue/processor.go b/backend/taskqueue/processor.go
index b64b01c..cf90cbc 100644
--- a/backend/taskqueue/processor.go
+++ b/backend/taskqueue/processor.go
@@ -58,11 +58,11 @@ func (p *processor) doProcessTaskCompileSwiftToWasm(
MaxDuration: 5000,
Code: payload.Code(),
}
- reqJson, err := json.Marshal(reqData)
+ reqJSON, err := json.Marshal(reqData)
if err != nil {
return nil, fmt.Errorf("json.Marshal failed: %v", err)
}
- res, err := http.Post("http://worker:80/api/swiftc", "application/json", bytes.NewBuffer(reqJson))
+ res, err := http.Post("http://worker:80/api/swiftc", "application/json", bytes.NewBuffer(reqJSON))
if err != nil {
return nil, fmt.Errorf("http.Post failed: %v", err)
}
@@ -95,11 +95,11 @@ func (p *processor) doProcessTaskCompileWasmToNativeExecutable(
MaxDuration: 5000,
Code: payload.Code(),
}
- reqJson, err := json.Marshal(reqData)
+ reqJSON, err := json.Marshal(reqData)
if err != nil {
return nil, fmt.Errorf("json.Marshal failed: %v", err)
}
- res, err := http.Post("http://worker:80/api/wasmc", "application/json", bytes.NewBuffer(reqJson))
+ res, err := http.Post("http://worker:80/api/wasmc", "application/json", bytes.NewBuffer(reqJSON))
if err != nil {
return nil, fmt.Errorf("http.Post failed: %v", err)
}
@@ -134,11 +134,11 @@ func (p *processor) doProcessTaskRunTestcase(
Code: payload.Code(),
Stdin: payload.Stdin,
}
- reqJson, err := json.Marshal(reqData)
+ reqJSON, err := json.Marshal(reqData)
if err != nil {
return nil, fmt.Errorf("json.Marshal failed: %v", err)
}
- res, err := http.Post("http://worker:80/api/testrun", "application/json", bytes.NewBuffer(reqJson))
+ res, err := http.Post("http://worker:80/api/testrun", "application/json", bytes.NewBuffer(reqJSON))
if err != nil {
return nil, fmt.Errorf("http.Post failed: %v", err)
}