aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/taskqueue
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-08 19:59:40 +0900
committernsfisis <nsfisis@gmail.com>2024-08-08 19:59:40 +0900
commit205cb5e21b960852a06fa28baaa03dbbd6aa835f (patch)
tree24275a385bbd2f670a33ea234381146c7fc46130 /backend/taskqueue
parent59d423234056dabd51ca02f663243fe6b2128837 (diff)
downloadiosdc-japan-2024-albatross-205cb5e21b960852a06fa28baaa03dbbd6aa835f.tar.gz
iosdc-japan-2024-albatross-205cb5e21b960852a06fa28baaa03dbbd6aa835f.tar.zst
iosdc-japan-2024-albatross-205cb5e21b960852a06fa28baaa03dbbd6aa835f.zip
feat(backend/worker): enable `stylecheck` in `golangci-lint`
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)
}