From 56db1eb13e3ef4f8dad37165750c81ea51558c04 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Tue, 12 Sep 2023 14:30:01 -0700 Subject: [PATCH] untagged serde magic --- config/example.toml | 2 +- web3_proxy/src/config.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config/example.toml b/config/example.toml index b2d4cec4..2ad3d79a 100644 --- a/config/example.toml +++ b/config/example.toml @@ -74,7 +74,7 @@ response_cache_max_bytes = 10_000_000_000 [balanced_rpcs.ankr] display_name = "Ankr" - block_data_limit.Limit = "64" + block_data_limit = "64" http_url = "https://rpc.ankr.com/eth" soft_limit = 1_000 diff --git a/web3_proxy/src/config.rs b/web3_proxy/src/config.rs index c2817fda..9e3e40da 100644 --- a/web3_proxy/src/config.rs +++ b/web3_proxy/src/config.rs @@ -280,6 +280,7 @@ pub fn average_block_interval(chain_id: u64) -> Duration { #[derive(Clone, Debug, Derivative, Deserialize, PartialEq, Eq)] #[derivative(Default(bound = ""))] +#[serde(untagged)] pub enum BlockDataLimit { /// archive nodes can return all data Archive,