Added more concurrency

This commit is contained in:
Anthony committed 2018-04-02 10:15:42 -04:00
1 parent 51c470a9bc
commit 6276a68d98
1 file changed
+1 -4
@@ -55,9 +55,7 @@ public class MessageFunction {
public static void checkBlacklist(String guildId, Message message, TextChannel channel,String msg) { public static void checkBlacklist(String guildId, Message message, TextChannel channel,String msg) {
try { try {
((DBBlacklist) DBController.get("blacklist")).getBlacklistFromServer(guildId, new Consumer<ArrayList<MBlacklist>>() { ((DBBlacklist) DBController.get("blacklist")).getBlacklistFromServer(guildId, mBlacklists -> {
@Override
public void accept(ArrayList<MBlacklist> mBlacklists) {
if (!mBlacklists.isEmpty()) { if (!mBlacklists.isEmpty()) {
boolean found = false; boolean found = false;
@@ -71,7 +69,6 @@ public class MessageFunction {
channel.sendMessage("Not in my christian server").queue(); channel.sendMessage("Not in my christian server").queue();
} }
} }
}
}); });
} catch (RuntimeException ignored) { } catch (RuntimeException ignored) {
} }