diff --git a/Cargo.lock b/Cargo.lock index 3c0799d168c889efdd0ca3a5ced32e3f78ae26c0..8f0642c0f09ed67e890a958d650a6146b1460577 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -574,7 +574,7 @@ checksum = "0688c2a7f92e427f44895cd63841bff7b29f8d7a1648b9e7e07a4a365b2e1257" [[package]] name = "drone" -version = "0.2.1" +version = "0.2.2" dependencies = [ "actix-cors", "actix-web", diff --git a/Cargo.toml b/Cargo.toml index 5b4a7548036d23f3710e3b923c668560553821d9..a80a4ff23739456e7d94c5e346f0b8ea4a13b8f7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "drone" -version = "0.2.1" +version = "0.2.2" edition = "2021" authors = ["Deathwing <hi@deathwing.me>"] description = "A caching reverse-proxy application for the Hive blockchain." diff --git a/src/main.rs b/src/main.rs index b003d0813ad0ed46017d2ec5e86e7ab20e27971f..b5b714dd283b411a66657d60f13758a7fbcbc07e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -161,8 +161,6 @@ async fn handle_request( "condenser_api.get_replies_by_last_update" => Endpoints::HIVEMIND, "condenser_api.get_reblogged_by" => Endpoints::HIVEMIND, _bridge_endpoint if method.starts_with("bridge.") => Endpoints::HIVEMIND, - "follow_api" => Endpoints::HIVEMIND, - "tags_api" => Endpoints::HIVEMIND, _anything_else => Endpoints::HAF, }; @@ -249,7 +247,6 @@ async fn api_call( call: web::Json<APICall>, data: web::Data<AppData>, ) -> impl Responder { - // Log the request, if there's Cloudflare header (CF-Connecting-IP) use that instead of peer_addr. let get_cloudflare_ip = req.headers().get("CF-Connecting-IP"); let client_ip = match get_cloudflare_ip { @@ -284,7 +281,6 @@ async fn api_call( } APICall::Batch(requests) => { let mut responses = Vec::new(); - // If there's over 100 in the batch, return an error. if requests.len() > 100 { return HttpResponse::InternalServerError().json(ErrorStructure { code: -32600,