forked from Archives/Athou_commafeed
limit transaction size
This commit is contained in:
@@ -161,7 +161,7 @@ public class FeedRefreshTaskGiver {
|
|||||||
// then, add to those the feeds we got from the add() method. We add them at the beginning of the list as they probably have a
|
// then, add to those the feeds we got from the add() method. We add them at the beginning of the list as they probably have a
|
||||||
// higher priority
|
// higher priority
|
||||||
int size = addQueue.size();
|
int size = addQueue.size();
|
||||||
for (int i = 0; i < size; i++) {
|
for (int i = 0; i < Math.min(count, size); i++) {
|
||||||
contexts.add(0, addQueue.poll());
|
contexts.add(0, addQueue.poll());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user