aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorGuillermo Serrahima <dev@vylion.com>2026-07-14 23:16:20 +0200
committerGuillermo Serrahima <dev@vylion.com>2026-07-14 23:22:02 +0200
commit19bbdcfb301d62d59310b9f460f619259e0e1a81 (patch)
tree7ad493d51478eb2171817424316670d8d7512a34 /main.go
parent10e54b1bb7979dc21911afce0d20cffc4a2d038a (diff)
downloadllostre-19bbdcfb301d62d59310b9f460f619259e0e1a81.tar.xz
llostre-19bbdcfb301d62d59310b9f460f619259e0e1a81.zip
Tidied up dependencies
Diffstat (limited to 'main.go')
-rw-r--r--main.go12
1 files changed, 6 insertions, 6 deletions
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,