diff options
author | Tom Smeding <tom.smeding@gmail.com> | 2020-03-28 21:26:30 +0100 |
---|---|---|
committer | Tom Smeding <tom.smeding@gmail.com> | 2020-03-28 21:30:41 +0100 |
commit | ca1f72456cfa92f72fc83f13adc5004f718c8404 (patch) | |
tree | e189eb0a76fa2e1c1757e4e66c0a3e8442b10eab | |
parent | 60d91b79c046deb58b9dfb52d9b83e43d9690eb6 (diff) |
worker: Correct job reply format
-rw-r--r-- | worker/src/connection.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/worker/src/connection.rs b/worker/src/connection.rs index 1222c92..164ff16 100644 --- a/worker/src/connection.rs +++ b/worker/src/connection.rs @@ -101,8 +101,9 @@ impl Connection { Reply::NewCore => {} - Reply::Job(jobid, output) => { - payload.push(jobid.to_le_bytes().to_vec()); + Reply::Job(retcode, output) => { + payload.push(retcode.to_le_bytes().to_vec()); + payload.push(output.len().to_le_bytes().to_vec()); payload.push(output); } } |