From 30ea770c37a120935248b78df0ccc680d2ff5490 Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Fri, 30 Oct 2020 19:24:05 +0200 Subject: [PATCH] Removed old code --- source/libdnet/dclient.d | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/source/libdnet/dclient.d b/source/libdnet/dclient.d index 9af9fa9..3a884b8 100644 --- a/source/libdnet/dclient.d +++ b/source/libdnet/dclient.d @@ -17,18 +17,13 @@ public final class DClient */ private Manager manager; private Socket socket; + /* Create a queue for normal traffic (request-reply on tag: 0) */ private Queue reqRepQueue; - /* Create a queue for notifications (replies-only on tag: 1) */ + /* Create a queue for notifications (replies-only on tag: 1) */ private Queue notificationQueue; - - /* TODO: Tristsnable doesn't, unlike my java version, let youn really reuse tags */ - /* TODO: Reason is after use they do not get deleted, only later by garbage collector */ - /* TODO: To prevent weird stuff from possibly going down, we use unique ones each time */ - private long i = 20; - /** * Constructs a new DClient and connects * it to the given endpoint Address @@ -47,6 +42,8 @@ public final class DClient initTristanable(socket); } + /* TODO: Create a new queue actually for each command (this is for performance) - as we will have server spawn workers */ + private void initTristanable(Socket socket) { /* Initialize the manager */ @@ -449,9 +446,6 @@ public final class DClient /* TODO: Error handling */ } - /* Set next available tag */ - i++; - return members; } @@ -505,9 +499,6 @@ public final class DClient /* TODO: Error handling */ } - /* Set next available tag */ - i++; - return memberCount; } @@ -537,9 +528,6 @@ public final class DClient /* TODO: Error handling */ } - /* Set next available tag */ - i++; - return motd; }