nbd-wtf / go-nostr

Nostr library for Golang
MIT License
364 stars 102 forks source link

reconnect #113

Closed mattn closed 10 months ago

mattn commented 10 months ago

Current implementation does not reconnect relays when the relay is restarted.

~DO NOT MERGE~

sweep-ai[bot] commented 10 months ago

Apply Sweep Rules to your PR?

mattn commented 10 months ago

@fiatjaf Can you take a look? This change make SubMany forever until context become done.

fiatjaf commented 10 months ago

Looks great, thanks!

I think it would be better with one of those exponential backoff things instead of always 3 seconds, but I'll I try to add that myself.