diff options
| author | Ben Busby <contact@benbusby.com> | 2025-05-27 11:34:05 -0600 |
|---|---|---|
| committer | Ben Busby <contact@benbusby.com> | 2025-05-27 11:34:05 -0600 |
| commit | 7b9b453a3688f94f7ebd4e787d592c61b3d397e9 (patch) | |
| tree | 6bef67f51180066c321c37ad169701abfefb633a /services | |
| parent | 368fa2005d2c4d722b0366ef47e3f6eaa25bfaff (diff) | |
| download | farside-7b9b453a3688f94f7ebd4e787d592c61b3d397e9.tar.gz | |
Change base link for services json
The sourcehut link is (rightfully) blocking unauthenticated requests, so
using the github link is more reliable.
Diffstat (limited to 'services')
| -rw-r--r-- | services/services.go | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/services/services.go b/services/services.go index 9e3953d..8766a3d 100644 --- a/services/services.go +++ b/services/services.go @@ -13,7 +13,7 @@ var ( ) const ( - baseRepoLink = "https://git.sr.ht/~benbusby/farside/blob/main/" + baseRepoLink = "https://raw.githubusercontent.com/benbusby/farside/refs/heads/main/" noCFServicesJSON = "services.json" fullServicesJSON = "services-full.json" @@ -26,11 +26,6 @@ type Service struct { Instances []string `json:"instances"` } -func ingestServicesList(servicesBytes []byte) error { - err := json.Unmarshal(servicesBytes, &ServiceList) - return err -} - func GetServicesFileName() string { cloudflareEnabled := false @@ -78,7 +73,7 @@ func InitializeServices() error { } } - err = ingestServicesList(fileBytes) + err = json.Unmarshal(fileBytes, &ServiceList) if err != nil { return err } |
