diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-08 21:17:13 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-08 21:17:13 +0900 |
| commit | a100dc8ba76aaeda2229940c1743c33cc0ef84b5 (patch) | |
| tree | e2e48d8d92e2601d65e3ce7d794d8727026c14e0 /worker/models.go | |
| parent | bb62b6ff19d9f8008458d1c0ad0b8b76090f091e (diff) | |
| parent | 3b13a61123becc63823ab0c0941aaff2048b020e (diff) | |
| download | iosdc-japan-2024-albatross-a100dc8ba76aaeda2229940c1743c33cc0ef84b5.tar.gz iosdc-japan-2024-albatross-a100dc8ba76aaeda2229940c1743c33cc0ef84b5.tar.zst iosdc-japan-2024-albatross-a100dc8ba76aaeda2229940c1743c33cc0ef84b5.zip | |
Merge branch 'feat/code-hash'
Diffstat (limited to 'worker/models.go')
| -rw-r--r-- | worker/models.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/worker/models.go b/worker/models.go index c60002c..9f60eb0 100644 --- a/worker/models.go +++ b/worker/models.go @@ -19,6 +19,7 @@ var ( type swiftCompileRequestData struct { MaxDurationMilliseconds int `json:"max_duration_ms"` Code string `json:"code"` + CodeHash string `json:"code_hash"` } func (req *swiftCompileRequestData) maxDuration() time.Duration { @@ -40,7 +41,7 @@ type swiftCompileResponseData struct { type wasmCompileRequestData struct { MaxDurationMilliseconds int `json:"max_duration_ms"` - Code string `json:"code"` + CodeHash string `json:"code_hash"` } type wasmCompileResponseData struct { @@ -62,7 +63,7 @@ func (req *wasmCompileRequestData) validate() error { type testRunRequestData struct { MaxDurationMilliseconds int `json:"max_duration_ms"` - Code string `json:"code"` + CodeHash string `json:"code_hash"` Stdin string `json:"stdin"` } |
