make each step of feed fetching return its own model

This commit is contained in:
Athou
2023-05-01 09:25:44 +02:00
parent 4a40f2b8f7
commit 9c628a8f53
11 changed files with 89 additions and 99 deletions

View File

@@ -53,7 +53,7 @@ public class FeedRefreshEngine implements Managed {
}
@Override
public void start() throws Exception {
public void start() {
Flowable<Feed> database = Flowable.fromCallable(() -> findNextUpdatableFeeds(getBatchSize(), getLastLoginThreshold()))
.onErrorResumeNext(e -> {
log.error("error while fetching next updatable feeds", e);
@@ -114,7 +114,7 @@ public class FeedRefreshEngine implements Managed {
}
@Override
public void stop() throws Exception {
public void stop() {
flow.dispose();
}
}