From 79d8029d72cff3d2de00080fa708d59a384c3aee Mon Sep 17 00:00:00 2001 From: TheCharlatan Date: Mon, 14 Nov 2022 17:46:34 +0100 Subject: [PATCH] Info: Serde Rename ProgressEvent StateUpdate field to update --- src/bus/info.rs | 1 + src/swapd/swap_state.rs | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bus/info.rs b/src/bus/info.rs index ff1f70be6..82089c14b 100644 --- a/src/bus/info.rs +++ b/src/bus/info.rs @@ -329,6 +329,7 @@ pub struct FundingInfos { pub enum ProgressEvent { #[serde(rename = "message")] Message(String), + #[serde(rename = "update")] StateUpdate(StateReport), #[serde(rename = "transition")] StateTransition(StateTransition), diff --git a/src/swapd/swap_state.rs b/src/swapd/swap_state.rs index 8b96eb621..7e4e4fb0f 100644 --- a/src/swapd/swap_state.rs +++ b/src/swapd/swap_state.rs @@ -9,7 +9,6 @@ use crate::bus::p2p::Commit; use crate::bus::Outcome; #[derive(Display, Debug, Clone, StrictEncode, StrictDecode)] - pub enum AliceState { // #[display("Start: {0:#?} {1:#?}")] #[display("Start")]