From fc119ffbe1ae89b23207b2f3047a5297ca410e78 Mon Sep 17 00:00:00 2001
From: Daniel Gultsch <daniel@gultsch.de>
Date: Mon, 18 Jan 2021 16:52:07 +0100
Subject: [PATCH] added a couple of TODO items

---
 TODO.md                                                     | 2 ++
 src/main/java/im/quicksy/server/throttle/VolumeLimiter.java | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/TODO.md b/TODO.md
index 99a919b..61d834e 100644
--- a/TODO.md
+++ b/TODO.md
@@ -1,3 +1,5 @@
+* Create Adhoc-Commands method to look up single phone number
+* Allow users in the directory to loop up others
 * Allow multiple entries (phone numbers) per Jabber ID
 * Generalize look up method and allow email addresses (and potentially all sort of uris) to be stored in the directory
 * XEPify look up method
diff --git a/src/main/java/im/quicksy/server/throttle/VolumeLimiter.java b/src/main/java/im/quicksy/server/throttle/VolumeLimiter.java
index 362b61c..a5beb7a 100644
--- a/src/main/java/im/quicksy/server/throttle/VolumeLimiter.java
+++ b/src/main/java/im/quicksy/server/throttle/VolumeLimiter.java
@@ -39,7 +39,7 @@ public class VolumeLimiter<E, T> {
         }
 
         if (whats.size() > strategy.getAttempts()) {
-            throw new RetryInException(Duration.ZERO);
+            throw new RetryInException(Duration.ZERO); //TODO should we throw a too large exception. because retry doesn’t really make sense
         }
 
         List<T> remaining = new ArrayList<>(whats);
-- 
GitLab