untagged serde magic

This commit is contained in:
Bryan Stitt 2023-09-12 14:30:01 -07:00
parent bf26ea2b1a
commit 56db1eb13e
2 changed files with 2 additions and 1 deletions

@ -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

@ -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,