From 19bbdcfb301d62d59310b9f460f619259e0e1a81 Mon Sep 17 00:00:00 2001 From: Guillermo Serrahima Date: Tue, 14 Jul 2026 23:16:20 +0200 Subject: Tidied up dependencies --- main.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 0ed7c67..17eee09 100644 --- a/main.go +++ b/main.go @@ -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, -- cgit v1.2.3