From d2f0d45dd21cb5c4322ed8d6fb288bd6d340391e Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Wed, 26 Jul 2023 16:40:08 -0700 Subject: [PATCH] reduce out of funds tier to match free config and bump to version 1 --- Cargo.lock | 6 +++--- entities/Cargo.toml | 2 +- migration/Cargo.toml | 2 +- .../src/m20230726_225124_reduce_out_of_funds_tier_limits.rs | 5 ++--- web3_proxy/Cargo.toml | 2 +- 5 files changed, 8 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index cffee48c..bf73f5ee 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1678,7 +1678,7 @@ dependencies = [ [[package]] name = "entities" -version = "0.41.0" +version = "0.42.0" dependencies = [ "ethers", "sea-orm", @@ -3330,7 +3330,7 @@ dependencies = [ [[package]] name = "migration" -version = "0.41.0" +version = "0.42.0" dependencies = [ "chrono", "sea-orm", @@ -6982,7 +6982,7 @@ dependencies = [ [[package]] name = "web3_proxy" -version = "0.41.0" +version = "1.42.0" dependencies = [ "anyhow", "arc-swap", diff --git a/entities/Cargo.toml b/entities/Cargo.toml index 1553a957..2f89bc82 100644 --- a/entities/Cargo.toml +++ b/entities/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "entities" -version = "0.41.0" +version = "0.42.0" edition = "2021" [lib] diff --git a/migration/Cargo.toml b/migration/Cargo.toml index 5de615ce..62b2fd1e 100644 --- a/migration/Cargo.toml +++ b/migration/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "migration" -version = "0.41.0" +version = "0.42.0" edition = "2021" publish = false diff --git a/migration/src/m20230726_225124_reduce_out_of_funds_tier_limits.rs b/migration/src/m20230726_225124_reduce_out_of_funds_tier_limits.rs index 8fd4fafc..669e8fd5 100644 --- a/migration/src/m20230726_225124_reduce_out_of_funds_tier_limits.rs +++ b/migration/src/m20230726_225124_reduce_out_of_funds_tier_limits.rs @@ -12,7 +12,7 @@ impl MigrationTrait for Migration { (UserTier::MaxRequestsPerPeriod, Some("3000").into()), (UserTier::MaxConcurrentRequests, Some("3").into()), ]) - .and_where(Expr::col((UserTier::Title).eq("Premium Out Of Funds"))) + .and_where(Expr::col(UserTier::Title).eq("Premium Out Of Funds")) .to_owned(); manager.exec_stmt(update_out_of_funds_tier).await?; @@ -20,7 +20,7 @@ impl MigrationTrait for Migration { Ok(()) } - async fn down(&self, manager: &SchemaManager) -> Result<(), DbErr> { + async fn down(&self, _manager: &SchemaManager) -> Result<(), DbErr> { Ok(()) } } @@ -28,7 +28,6 @@ impl MigrationTrait for Migration { #[derive(Iden)] enum UserTier { Table, - Id, Title, MaxRequestsPerPeriod, MaxConcurrentRequests, diff --git a/web3_proxy/Cargo.toml b/web3_proxy/Cargo.toml index c9f9da9c..16608206 100644 --- a/web3_proxy/Cargo.toml +++ b/web3_proxy/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "web3_proxy" -version = "0.41.0" +version = "1.42.0" edition = "2021" default-run = "web3_proxy_cli"