From ca1f72456cfa92f72fc83f13adc5004f718c8404 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Sat, 28 Mar 2020 21:26:30 +0100 Subject: worker: Correct job reply format --- worker/src/connection.rs | 5 +++-- 1 file 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); } } -- cgit v1.2.3-70-g09d2