diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-08 21:17:06 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-08 21:17:06 +0900 |
| commit | 3b13a61123becc63823ab0c0941aaff2048b020e (patch) | |
| tree | e2e48d8d92e2601d65e3ce7d794d8727026c14e0 /worker/handlers.go | |
| parent | d94c9eb68e65d53f09bf3dd26ec4d61d245882ad (diff) | |
| download | phperkaigi-2025-albatross-3b13a61123becc63823ab0c0941aaff2048b020e.tar.gz phperkaigi-2025-albatross-3b13a61123becc63823ab0c0941aaff2048b020e.tar.zst phperkaigi-2025-albatross-3b13a61123becc63823ab0c0941aaff2048b020e.zip | |
feat(backend/worker): calculate code hash in api-server
Diffstat (limited to 'worker/handlers.go')
| -rw-r--r-- | worker/handlers.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/worker/handlers.go b/worker/handlers.go index e7ceef6..ac9701f 100644 --- a/worker/handlers.go +++ b/worker/handlers.go @@ -23,6 +23,7 @@ func handleSwiftCompile(c echo.Context) error { res := execSwiftCompile( c.Request().Context(), req.Code, + req.CodeHash, req.maxDuration(), ) @@ -40,7 +41,7 @@ func handleWasmCompile(c echo.Context) error { res := execWasmCompile( c.Request().Context(), - req.Code, + req.CodeHash, req.maxDuration(), ) @@ -58,7 +59,7 @@ func handleTestRun(c echo.Context) error { res := execTestRun( c.Request().Context(), - req.Code, + req.CodeHash, req.Stdin, req.maxDuration(), ) |
