mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
more threads
This commit is contained in:
@@ -63,7 +63,7 @@ public class StartupBean {
|
||||
}
|
||||
|
||||
// 3 threads
|
||||
for (int i = 0; i < 3; i++) {
|
||||
for (int i = 0; i < 6; i++) {
|
||||
worker.start();
|
||||
}
|
||||
|
||||
|
||||
@@ -54,10 +54,10 @@ public class FeedRefreshWorker {
|
||||
try {
|
||||
Feed feed = getNextFeed();
|
||||
if (feed != null) {
|
||||
System.out.println("refreshing " + feed.getUrl());
|
||||
log.debug("refreshing " + feed.getUrl());
|
||||
update(feed);
|
||||
} else {
|
||||
System.out.println("sleeping");
|
||||
log.debug("sleeping");
|
||||
Thread.sleep(15000);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
@@ -79,7 +79,6 @@ public class FeedRefreshWorker {
|
||||
try {
|
||||
fetchedFeed = fetcher.fetch(feed.getUrl());
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
message = "Unable to refresh feed " + feed.getUrl() + " : "
|
||||
+ e.getMessage();
|
||||
log.info(e.getClass().getName() + " " + message);
|
||||
|
||||
Reference in New Issue
Block a user