Only use a single thread for requests
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 26 Aug 2015 12:40:05 +0000 (14:40 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 26 Aug 2015 12:40:05 +0000 (14:40 +0200)
src/main/java/net/pterodactylus/rhynodge/engine/Engine.java

index 079350b..8ff7020 100644 (file)
@@ -52,7 +52,7 @@ public class Engine {
        public Engine(StateManager stateManager, EmailAction errorEmailAction) {
                this.stateManager = stateManager;
                this.errorEmailAction = errorEmailAction;
-               executorService = new ScheduledThreadPoolExecutor(10);
+               executorService = new ScheduledThreadPoolExecutor(1);
        }
 
        //