Skip to content

Commit

Permalink
Print that there was an error reading chateaus from postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
kylerchin committed Apr 24, 2024
1 parent 20e0248 commit 24082cb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/aspen/leader_thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@ pub async fn aspen_leader_thread(

std::mem::drop(workers_nodes_lock);
std::mem::drop(chateau_list_lock);
} else {
println!("Error reading chateaus from postgres");
}
}

Expand Down
4 changes: 4 additions & 0 deletions src/birch/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,10 @@ pub async fn rail_stops(
) -> impl Responder {
let (z, x, y) = path.into_inner();

if (z < 4) {
return HttpResponse::BadRequest().body("Zoom level too low");
}

//let grid = tile_grid::Grid::wgs84();

// let bbox = grid.tile_extent(x, y, z);
Expand Down

0 comments on commit 24082cb

Please sign in to comment.