We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a88cf1b + 21b3dc9 commit 83444f5Copy full SHA for 83444f5
main.go
@@ -23,6 +23,9 @@ func main() {
23
}
24
25
redisURL := os.Getenv("REDIS_URL")
26
+ if redisURL == "" {
27
+ log.WithField("REDIS_URL", redisURL).Fatal("$REDIS_URL must be set")
28
+ }
29
redisPool, err := redis.NewRedisPoolFromURL(redisURL)
30
if err != nil {
31
log.WithField("url", redisURL).Fatal("Unable to create Redis pool")
0 commit comments