mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
avoid an extra database roundtrip
This commit is contained in:
@@ -36,8 +36,7 @@ public class FeedUpdateService {
|
||||
@Inject
|
||||
FeedEntryStatusDAO feedEntryStatusDAO;
|
||||
|
||||
public void updateEntries(String url, Collection<FeedEntry> entries) {
|
||||
Feed feed = feedDAO.findByUrl(url);
|
||||
public void updateEntries(Feed feed, Collection<FeedEntry> entries) {
|
||||
List<String> guids = Lists.newArrayList();
|
||||
for (FeedEntry entry : entries) {
|
||||
guids.add(entry.getGuid());
|
||||
|
||||
Reference in New Issue
Block a user