Skip to content

Commit

Permalink
fix: remove the address limit (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
michalstruck authored Jan 17, 2025
1 parent b9bc2c7 commit 41b3721
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,13 @@ impl Config {
.await?;

let redis_url = env::var("REDIS_URL").context("REDIS_URL environment variable not set")?;
// for local dev
// let redis_client = Client::open(redis_url)?;

let redis_pool = build_redis_pool(redis_url)
.await
.expect("Failed to connect to Redis");

tracing::info!("✅ Connection to Redis established.");

Ok(Self {
db_client: Some(db_client),
db_read_client: Some(db_read_client),
Expand Down
6 changes: 0 additions & 6 deletions src/routes/api/v1/query_multiple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ pub async fn query_multiple(
.map(|a| a.0.to_checksum(None))
.collect::<Vec<_>>();

if addresses.len() > 50 {
return Err(ErrorResponse::validation_error(
"Too many addresses, max is 50".to_string(),
));
}

let names = sqlx::query_as!(
Name,
"SELECT * FROM names WHERE address = ANY($1)",
Expand Down

0 comments on commit 41b3721

Please sign in to comment.