From c925ec9c27136be3e5b5feda3ca899472ef493df Mon Sep 17 00:00:00 2001 From: yenicelik Date: Sat, 18 Mar 2023 10:15:21 +0100 Subject: [PATCH] about to merge stats into it --- web3_proxy/src/stats/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web3_proxy/src/stats/mod.rs b/web3_proxy/src/stats/mod.rs index 1060e641..e8f99154 100644 --- a/web3_proxy/src/stats/mod.rs +++ b/web3_proxy/src/stats/mod.rs @@ -442,6 +442,9 @@ impl StatBuffer { let mut opt_in_timeseries_buffer = HashMap::::new(); let mut accounting_db_buffer = HashMap::::new(); + // TODO: Somewhere here we should probably be updating the balance of the user + // And also update the credits used etc. for the referred user + loop { tokio::select! { stat = stat_receiver.recv_async() => {