Move feed utils to its own file

This commit is contained in:
Jon Staab
2024-05-03 10:30:50 -07:00
parent a343f74241
commit d4cf63e906
10 changed files with 245 additions and 143 deletions
+5
View File
@@ -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(