What is Nostr?
fiatjaf /
npub180c…h6w6
2024-09-27 12:46:56
in reply to nevent1q…frsw

fiatjaf on Nostr: The reason for the goroutines is that results from different virtual queries must be ...

The reason for the goroutines is that results from different virtual queries must be returned in order, so we must do the queries in parallel then aggregate results from all of them partially instead of doing them in sequence and potentially returning results just from the first.

I am not claiming the way I did was the best possible, I would be glad to learn about better ways.
Author Public Key
npub180cvv07tjdrrgpa0j7j7tmnyl2yr6yr7l8j4s3evf6u64th6gkwsyjh6w6