From f9dd82743920b156c74886ca9fb1d97e2a50703c Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Wed, 26 Jul 2023 21:02:29 -0700 Subject: [PATCH] add a log message about how many users are being upgraded --- web3_proxy/src/sub_commands/mass_grant_credits.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web3_proxy/src/sub_commands/mass_grant_credits.rs b/web3_proxy/src/sub_commands/mass_grant_credits.rs index b53845f8..658f7c53 100644 --- a/web3_proxy/src/sub_commands/mass_grant_credits.rs +++ b/web3_proxy/src/sub_commands/mass_grant_credits.rs @@ -49,6 +49,8 @@ impl MassGrantCredits { while let Some(users_to_upgrade) = user_stream.try_next().await? { let txn = db_conn.begin().await?; + info!("Upgrading {} users", users_to_upgrade.len()); + for user_to_upgrade in users_to_upgrade { if self.credits > 0.into() { let increase_balance_receipt = admin_increase_balance_receipt::ActiveModel {