Make repository.load sync, move migrate into adapters

This commit is contained in:
Jon Staab
2024-09-27 12:46:39 -07:00
parent f27a64250e
commit 1ef7c1c59f
3 changed files with 15 additions and 25 deletions
-4
View File
@@ -54,10 +54,6 @@ export const subscribe = (request: PartialSubscribeRequest) => {
const timeout = request.closeOnEose ? ctx.app.requestTimeout : 0
const sub = baseSubscribe({delay, timeout, authTimeout, relays: [], ...request})
sub.emitter.on("event", (url: string, e: TrustedEvent) => {
repository.publish(e)
})
// Keep cached results async so the caller can set up handlers
setTimeout(() => {
for (const event of events) {