From cac31303f35347f74f220ef970451a2000158868 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Thu, 2 Feb 2023 08:00:59 -0800 Subject: [PATCH] include backup in web3connection serializer --- web3_proxy/src/rpcs/connection.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web3_proxy/src/rpcs/connection.rs b/web3_proxy/src/rpcs/connection.rs index 99fc3cd1..cddb8feb 100644 --- a/web3_proxy/src/rpcs/connection.rs +++ b/web3_proxy/src/rpcs/connection.rs @@ -1117,13 +1117,15 @@ impl Serialize for Web3Connection { S: Serializer, { // 3 is the number of fields in the struct. - let mut state = serializer.serialize_struct("Web3Connection", 8)?; + let mut state = serializer.serialize_struct("Web3Connection", 9)?; // the url is excluded because it likely includes private information. just show the name that we use in keys state.serialize_field("name", &self.name)?; // a longer name for display to users state.serialize_field("display_name", &self.display_name)?; + state.serialize_field("backup", &self.backup)?; + match self.block_data_limit.load(atomic::Ordering::Relaxed) { u64::MAX => { state.serialize_field("block_data_limit", &None::<()>)?;