From b17894c2d610975794944b16f75e5c33f8c4ef9c Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Sat, 12 Nov 2022 09:25:14 +0000 Subject: [PATCH] deprecated function --- web3_proxy/src/app_stats.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web3_proxy/src/app_stats.rs b/web3_proxy/src/app_stats.rs index 303b5b59..0510a9bf 100644 --- a/web3_proxy/src/app_stats.rs +++ b/web3_proxy/src/app_stats.rs @@ -172,7 +172,7 @@ impl ProxyResponseAggregate { period_timestamp: u64, ) -> Result<(), DbErr> { // this is a lot of variables - let period_datetime = Utc.timestamp(period_timestamp as i64, 0); + let period_datetime = Utc.timestamp_opt(period_timestamp as i64, 0).unwrap(); let request_bytes = &self.histograms.request_bytes;