mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
more pubsub special cases handling
This commit is contained in:
@@ -64,7 +64,7 @@ public class FeedRefreshUpdater {
|
||||
pool.setRejectedExecutionHandler(new ThreadPoolExecutor.CallerRunsPolicy() {
|
||||
@Override
|
||||
public void rejectedExecution(Runnable r, ThreadPoolExecutor e) {
|
||||
log.info("Thread queue full, executing in own thread.");
|
||||
log.debug("Thread queue full, executing in own thread.");
|
||||
super.rejectedExecution(r, e);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -143,6 +143,10 @@ public class FeedRefreshWorker {
|
||||
}
|
||||
if (topic.startsWith("www.")) {
|
||||
topic = "http://" + topic;
|
||||
} else if (topic.startsWith("feed://")) {
|
||||
topic = "http://" + topic.substring(7);
|
||||
} else if (topic.startsWith("http") == false) {
|
||||
topic = "http://" + topic;
|
||||
}
|
||||
log.debug("feed {} has pubsub info: {}", feed.getUrl(), topic);
|
||||
FeedPushInfo info = feed.getPushInfo();
|
||||
|
||||
Reference in New Issue
Block a user