sdk/dataloader simplify and fix lock issues, now it will work.

This commit is contained in:
fiatjaf
2025-03-26 00:58:19 -03:00
parent d1fca24cc3
commit a60e225a5f
3 changed files with 34 additions and 57 deletions

View File

@@ -743,8 +743,12 @@ func (pool *SimplePool) BatchedSubManyEose(
pool.duplicateMiddleware(relay, id)
}
return exists
}), seenAlready, opts...) {
res <- ie
}), seenAlready, opts...,
) {
select {
case res <- ie:
case <-ctx.Done():
}
}
wg.Done()