aboutsummaryrefslogtreecommitdiff
path: root/worker/src/connection.rs
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2020-03-28 21:26:30 +0100
committerTom Smeding <tom.smeding@gmail.com>2020-03-28 21:30:41 +0100
commitca1f72456cfa92f72fc83f13adc5004f718c8404 (patch)
treee189eb0a76fa2e1c1757e4e66c0a3e8442b10eab /worker/src/connection.rs
parent60d91b79c046deb58b9dfb52d9b83e43d9690eb6 (diff)
worker: Correct job reply format
Diffstat (limited to 'worker/src/connection.rs')
-rw-r--r--worker/src/connection.rs5
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);
}
}