Move feed utils to its own file
This commit is contained in:
@@ -39,6 +39,11 @@ export class FeedLoader<E extends Rumor> {
|
||||
}
|
||||
|
||||
async _getRequestsLoader(requests: RequestItem[], {onEvent, onExhausted}: LoadOpts<E>) {
|
||||
// Empty requests are not a no-op, they're a global feed
|
||||
if (requests.length === 0) {
|
||||
requests = [{}]
|
||||
}
|
||||
|
||||
const seen = new Set()
|
||||
const exhausted = new Set()
|
||||
const loaders = await Promise.all(
|
||||
|
||||
Reference in New Issue
Block a user