diff --git a/web3_proxy/src/frontend/users/payment_stripe.rs b/web3_proxy/src/frontend/users/payment_stripe.rs index 06a716ba..dcebd91d 100644 --- a/web3_proxy/src/frontend/users/payment_stripe.rs +++ b/web3_proxy/src/frontend/users/payment_stripe.rs @@ -3,7 +3,7 @@ use crate::errors::{Web3ProxyError, Web3ProxyErrorContext, Web3ProxyResponse}; use crate::globals::global_db_conn; use crate::premium::grant_premium_tier; use anyhow::Context; -use axum::{response::IntoResponse, Extension}; +use axum::{extract::State, response::IntoResponse}; use axum_macros::debug_handler; use entities::{stripe_increase_balance_receipt, user, user_tier}; use http::HeaderMap; diff --git a/web3_proxy_cli/examples/watch_blocks.rs b/web3_proxy_cli/examples/watch_blocks.rs index 012235a9..b66c258d 100644 --- a/web3_proxy_cli/examples/watch_blocks.rs +++ b/web3_proxy_cli/examples/watch_blocks.rs @@ -7,7 +7,7 @@ use web3_proxy::prelude::tokio; #[tokio::main] async fn main() -> anyhow::Result<()> { - fdlimit::raise_fd_limit(); + fdlimit::raise_fd_limit()?; // erigon does not support most filters // let url = "http://10.11.12.16:8545"; diff --git a/web3_proxy_cli/src/bin/wait_for_sync.rs b/web3_proxy_cli/src/bin/wait_for_sync.rs index 4ac6c3dc..c7397060 100644 --- a/web3_proxy_cli/src/bin/wait_for_sync.rs +++ b/web3_proxy_cli/src/bin/wait_for_sync.rs @@ -45,7 +45,7 @@ async fn main() -> anyhow::Result<()> { } // this probably won't matter for us in docker, but better safe than sorry - fdlimit::raise_fd_limit(); + fdlimit::raise_fd_limit()?; let cli_config: CliConfig = argh::from_env(); diff --git a/web3_proxy_cli/src/main.rs b/web3_proxy_cli/src/main.rs index 7f491615..9801f4e3 100644 --- a/web3_proxy_cli/src/main.rs +++ b/web3_proxy_cli/src/main.rs @@ -90,7 +90,7 @@ enum SubCommand { fn main() -> anyhow::Result<()> { // this probably won't matter for us in docker, but better safe than sorry - fdlimit::raise_fd_limit(); + fdlimit::raise_fd_limit()?; #[cfg(feature = "deadlock_detection")] { diff --git a/web3_proxy_cli/src/sub_commands/create_user.rs b/web3_proxy_cli/src/sub_commands/create_user.rs index fc047e7a..24237ba6 100644 --- a/web3_proxy_cli/src/sub_commands/create_user.rs +++ b/web3_proxy_cli/src/sub_commands/create_user.rs @@ -50,7 +50,7 @@ impl CreateUserSubCommand { let bytes = address.as_bytes(); // convert the slice to a Vec - bytes.try_into().expect("Bytes can always be a Vec") + bytes.into() }; // TODO: get existing or create a new one