aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
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,