From 6bfa5a69ca3273ed2ecefd95e99c02ae3ee61492 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Sat, 17 Jun 2023 08:43:51 -0700 Subject: [PATCH] latest_balance is part of AuthorizationChecks now --- web3_proxy/src/bin/web3_proxy_cli/migrate_stats_to_v2.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/web3_proxy/src/bin/web3_proxy_cli/migrate_stats_to_v2.rs b/web3_proxy/src/bin/web3_proxy_cli/migrate_stats_to_v2.rs index d915c733..fb04724f 100644 --- a/web3_proxy/src/bin/web3_proxy_cli/migrate_stats_to_v2.rs +++ b/web3_proxy/src/bin/web3_proxy_cli/migrate_stats_to_v2.rs @@ -4,7 +4,6 @@ use entities::{rpc_accounting, rpc_key}; use futures::stream::FuturesUnordered; use futures::StreamExt; use log::{error, info}; -use migration::sea_orm::prelude::Decimal; use migration::sea_orm::QueryOrder; use migration::sea_orm::{ ColumnTrait, DatabaseConnection, EntityTrait, QueryFilter, QuerySelect, UpdateResult, @@ -13,7 +12,7 @@ use migration::{Expr, Value}; use parking_lot::Mutex; use std::num::NonZeroU64; use std::sync::Arc; -use tokio::sync::{broadcast, RwLock}; +use tokio::sync::{broadcast}; use tokio::time::Instant; use ulid::Ulid; use web3_proxy::app::BILLING_PERIOD_SECONDS; @@ -177,8 +176,6 @@ impl MigrateStatsToV2 { let request_ulid = Ulid::new(); - let latest_balance = Arc::new(RwLock::new(Decimal::default())); - // Create RequestMetadata let request_metadata = RequestMetadata { archive_request: x.archive_request.into(),