tangled
alpha
login
or
join now
t1c.dev
/
rocksky
forked from
rocksky.app/rocksky
2
fork
atom
A decentralized music tracking and discovery platform built on AT Protocol 🎵
2
fork
atom
overview
issues
pulls
pipelines
Remove periodic yield during pagination
tsiry-sandratraina.com
1 month ago
6f9424ff
963987a1
-6
1 changed file
expand all
collapse all
unified
split
tap
src
main.ts
-6
tap/src/main.ts
···
234
234
235
235
hasMore = events.length === PAGE_SIZE;
236
236
page++;
237
237
-
238
238
-
if (hasMore && page % YIELD_EVERY_N_PAGES === 0) {
239
239
-
await new Promise((resolve) =>
240
240
-
setTimeout(resolve, YIELD_DELAY_MS),
241
241
-
);
242
242
-
}
243
237
}
244
238
245
239
logger.info`📤 Sent all historical events: ${totalEvents} total (${page} pages)`;