mirror of
https://github.com/aljazceru/njump.git
synced 2026-02-04 13:44:26 +01:00
relay hints with scheme.
This commit is contained in:
2
nostr.go
2
nostr.go
@@ -174,7 +174,7 @@ func getEvent(ctx context.Context, code string, relayHints []string) (*nostr.Eve
|
||||
|
||||
for ie := range pool.SubManyEoseNonUnique(ctx, relays, nostr.Filters{filter}) {
|
||||
if pu, err := url.Parse(ie.Relay.URL); err == nil {
|
||||
successRelays = append(successRelays, pu.Host+pu.RawPath)
|
||||
successRelays = append(successRelays, pu.Scheme+"://"+pu.Host+pu.RawPath)
|
||||
}
|
||||
result = ie.Event
|
||||
countdown = min(countdown, 1)
|
||||
|
||||
Reference in New Issue
Block a user