From 63fcd856da8e6f43290c0e7061dcd1beb2309379 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Wed, 2 Jan 2019 20:58:05 -0500 Subject: [PATCH] Box MsgType::Finish(BuildResult) --- ofborg/src/tasks/log_message_collector.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); }