more lint
This commit is contained in:
parent
06f48ecbbc
commit
02c73a8925
@ -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;
|
||||
|
@ -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";
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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")]
|
||||
{
|
||||
|
@ -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<u8>")
|
||||
bytes.into()
|
||||
};
|
||||
|
||||
// TODO: get existing or create a new one
|
||||
|
Loading…
Reference in New Issue
Block a user