From 77a317fdf84852a98d5e44450fc0dcb09b234f53 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Thu, 20 Apr 2023 13:35:59 -0700 Subject: [PATCH] default window to 60 seconds --- web3_proxy/src/http_params.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web3_proxy/src/http_params.rs b/web3_proxy/src/http_params.rs index bd6f47e2..1b31f1c2 100644 --- a/web3_proxy/src/http_params.rs +++ b/web3_proxy/src/http_params.rs @@ -218,8 +218,8 @@ pub fn get_query_window_seconds_from_params( ) -> Web3ProxyResult { params.get("query_window_seconds").map_or_else( || { - // no page in params. set default - Ok(1) + // no query_window_seconds in params. set default + Ok(60) }, |query_window_seconds: &String| { // parse the given timestamp