we should be doing this since years ago: force an EOSE if the relay refuses to give us one.

This commit is contained in:
fiatjaf
2025-08-25 22:42:05 -03:00
parent db2c1c7653
commit 80d0546ce6
4 changed files with 23 additions and 1 deletions

View File

@@ -122,7 +122,8 @@ func (sys *System) batchLoadReplaceableEvents(
// query all relays with the prepared filters
wg.Wait()
multiSubs := sys.Pool.BatchedQueryMany(aggregatedContext, relayFilter, nostr.SubscriptionOptions{
Label: "repl~" + strconv.Itoa(int(kind)),
Label: "repl~" + strconv.Itoa(int(kind)),
MaxWaitForEOSE: time.Second * 3,
})
for {
select {