Browse code

limit requests

devnewton authored on 23/06/2017 18:18:52
Showing 1 changed files
... ...
@@ -24,6 +24,7 @@ public class Fta2Tsv {
24 24
 
25 25
     public static void main(String[] args) throws InterruptedException {
26 26
         OkHttpClient client = new OkHttpClient();
27
+        client.dispatcher().setMaxRequests(1);
27 28
         for (final String tribune : TRIBUNES) {
28 29
             File outputDir = new File(OUTPUT_DIR, tribune);
29 30
             outputDir.mkdirs();