getAlby / nostr-wallet-connect

Nostr Wallet Connect (NIP-47) application to allow apps to connect to your node
https://nwc.getalby.com
Apache License 2.0
101 stars 29 forks source link

chore: dry up eos #234

Closed im-adithya closed 5 months ago

im-adithya commented 5 months ago

Instead of waiting till we reach EOS in one goroutine and concurrently looping through the already responded events in another goroutine, we can just block till we reach EOS in the same goroutine and then loop through events. That way we don't even have to check if it reached EOS.

And hence removes the need of an additional go routine and the unnecessary check for ReceivedEOS and also removes it from the Service model as a whole.