diff --git a/ofborg/src/tasks/log_message_collector.rs b/ofborg/src/tasks/log_message_collector.rs index 18a7b96..ae8bf67 100644 --- a/ofborg/src/tasks/log_message_collector.rs +++ b/ofborg/src/tasks/log_message_collector.rs @@ -28,7 +28,7 @@ pub struct LogMessageCollector { enum MsgType { Start(BuildLogStart), Msg(BuildLogMsg), - Finish(BuildResult), + Finish(Box), } #[derive(Debug)] @@ -197,7 +197,7 @@ impl worker::SimpleWorker for LogMessageCollector { let decode_msg: Result = serde_json::from_slice(body); if let Ok(msg) = decode_msg { attempt_id = msg.legacy().attempt_id.clone(); - message = MsgType::Finish(msg); + message = MsgType::Finish(Box::new(msg)); } else { return Err(format!("failed to decode job: {:?}", decode_msg)); }