irrelevant minor things.

This commit is contained in:
fiatjaf
2025-09-29 16:20:19 -03:00
parent 9ba61b56e6
commit f69c78cba7
2 changed files with 3 additions and 0 deletions

View File

@@ -41,6 +41,7 @@ func Fetch(ctx context.Context, u string) (info RelayInformationDocument, err er
// add the NIP-11 header
req.Header.Add("Accept", "application/nostr+json")
req.Header.Add("User-Agent", "nostrlib/go")
// send the request
resp, err := http.DefaultClient.Do(req)

View File

@@ -91,6 +91,8 @@ func (sys *System) FetchSpecificEvent(
relays = nostr.AppendUnique(relays, sys.FallbackRelays.Next())
fallback = append(fallback, sys.FallbackRelays.Next(), sys.FallbackRelays.Next())
priorityRelays = append(priorityRelays, v.Relays...)
default:
return nil, nil, fmt.Errorf("can't call sys.FetchSpecificEvent() with a %v", pointer)
}
// try to fetch in our internal eventstore first