From: David ‘Bombe’ Roden Date: Mon, 16 Mar 2009 23:10:09 +0000 (+0100) Subject: Use different executor for URL fetcher. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=b3f6d8f1de06593b1266d0432f77f684dd79bb4f;p=arachne.git Use different executor for URL fetcher. --- diff --git a/src/net/pterodactylus/arachne/core/Core.java b/src/net/pterodactylus/arachne/core/Core.java index 9bcddb0..53dedb8 100644 --- a/src/net/pterodactylus/arachne/core/Core.java +++ b/src/net/pterodactylus/arachne/core/Core.java @@ -48,7 +48,7 @@ public class Core extends AbstractService { private ParserFactory parserFactory = new ParserFactory(); /** Thread pool for the URL fetches. */ - private Executor urlFetcherExecutor = Executors.newFixedThreadPool(1, new DumpingThreadFactory("URLFetcher-")); + private Executor urlFetcherExecutor = Executors.newSingleThreadExecutor(new DumpingThreadFactory("URLFetcher-")); /** The current list of URLs to crawl. */ private final List pages = new ArrayList();