From ccb3fefb70f09d625963dc063af937aac06b5dff Mon Sep 17 00:00:00 2001
From: DeathwingTheBoss <ozcanbarisucar@gmail.com>
Date: Thu, 11 May 2023 02:10:21 +0300
Subject: [PATCH] - Version bump - Remove follow_api and tags_api (wrong
 implementation, unnecessary)

---
 Cargo.lock  | 2 +-
 Cargo.toml  | 2 +-
 src/main.rs | 4 ----
 3 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/Cargo.lock b/Cargo.lock
index 3c0799d..8f0642c 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 5b4a754..a80a4ff 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 b003d08..b5b714d 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,
-- 
GitLab