more lint

This commit is contained in:
Bryan Stitt 2023-11-09 18:21:20 -08:00
parent 06f48ecbbc
commit 02c73a8925
5 changed files with 5 additions and 5 deletions

@ -3,7 +3,7 @@ use crate::errors::{Web3ProxyError, Web3ProxyErrorContext, Web3ProxyResponse};
use crate::globals::global_db_conn; use crate::globals::global_db_conn;
use crate::premium::grant_premium_tier; use crate::premium::grant_premium_tier;
use anyhow::Context; use anyhow::Context;
use axum::{response::IntoResponse, Extension}; use axum::{extract::State, response::IntoResponse};
use axum_macros::debug_handler; use axum_macros::debug_handler;
use entities::{stripe_increase_balance_receipt, user, user_tier}; use entities::{stripe_increase_balance_receipt, user, user_tier};
use http::HeaderMap; use http::HeaderMap;

@ -7,7 +7,7 @@ use web3_proxy::prelude::tokio;
#[tokio::main] #[tokio::main]
async fn main() -> anyhow::Result<()> { async fn main() -> anyhow::Result<()> {
fdlimit::raise_fd_limit(); fdlimit::raise_fd_limit()?;
// erigon does not support most filters // erigon does not support most filters
// let url = "http://10.11.12.16:8545"; // let url = "http://10.11.12.16:8545";

@ -45,7 +45,7 @@ async fn main() -> anyhow::Result<()> {
} }
// this probably won't matter for us in docker, but better safe than sorry // 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(); let cli_config: CliConfig = argh::from_env();

@ -90,7 +90,7 @@ enum SubCommand {
fn main() -> anyhow::Result<()> { fn main() -> anyhow::Result<()> {
// this probably won't matter for us in docker, but better safe than sorry // 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")] #[cfg(feature = "deadlock_detection")]
{ {

@ -50,7 +50,7 @@ impl CreateUserSubCommand {
let bytes = address.as_bytes(); let bytes = address.as_bytes();
// convert the slice to a Vec // convert the slice to a Vec
bytes.try_into().expect("Bytes can always be a Vec<u8>") bytes.into()
}; };
// TODO: get existing or create a new one // TODO: get existing or create a new one