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

@@ -304,6 +304,9 @@ func (pool *Pool) FetchManyReplaceable(
})
return discard
}
if opts.MaxWaitForEOSE == 0 {
opts.MaxWaitForEOSE = time.Second * 4
}
for _, url := range urls {
go func(nm string) {