diff options
| author | Guillermo Serrahima <dev@vylion.com> | 2026-07-14 23:16:20 +0200 |
|---|---|---|
| committer | Guillermo Serrahima <dev@vylion.com> | 2026-07-14 23:22:02 +0200 |
| commit | 19bbdcfb301d62d59310b9f460f619259e0e1a81 (patch) | |
| tree | 7ad493d51478eb2171817424316670d8d7512a34 /main.go | |
| parent | 10e54b1bb7979dc21911afce0d20cffc4a2d038a (diff) | |
| download | llostre-19bbdcfb301d62d59310b9f460f619259e0e1a81.tar.xz llostre-19bbdcfb301d62d59310b9f460f619259e0e1a81.zip | |
Tidied up dependencies
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -75,22 +75,22 @@ func init() { } else { expiryMinutes = 15 } - redisAddr := os.Getenv("REDIS_ADDR") - redisPassword := os.Getenv("REDIS_PASSWORD") - postCache, err := fetchers.NewCache(redisAddr, redisPassword, expiryMinutes) + valkeyAddr := os.Getenv("VALKEY_ADDR") + valkeyPassword := os.Getenv("VALKEY_PASSWORD") + postCache, err := fetchers.NewCache(valkeyAddr, valkeyPassword, expiryMinutes) if err != nil { - config.Logger.Error("failed to connect to redis", "error", err) + logger.Error("failed to connect to valkey", "error", err) panic(err) } - porxieAddr := os.Getenv("PORXIE_URL") + porxieAddr := os.Getenv("PORXIE_ADDR") if porxieAddr == "" { porxieAddr = "porxie:6314" } config = &fetchers.Config{ SlingshotURL: slingshotURL, - PorxieURL: fmt.Sprintf("http://%s", os.Getenv("PORXIE_ADDR")), + PorxieURL: fmt.Sprintf("http://%s", porxieAddr), PageSize: 50, Logger: logger, Cache: postCache, |
