Commit 2926c874 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Don't launch Redis when config is nil

parent b7fe079e
...@@ -133,8 +133,10 @@ func main() { ...@@ -133,8 +133,10 @@ func main() {
cfg.Redis = cfgFromFile.Redis cfg.Redis = cfgFromFile.Redis
redis.Configure(cfg.Redis, redis.DefaultDialFunc) if cfg.Redis != nil {
go redis.Process() redis.Configure(cfg.Redis, redis.DefaultDialFunc)
go redis.Process()
}
} }
up := wrapRaven(upstream.NewUpstream(cfg)) up := wrapRaven(upstream.NewUpstream(cfg))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment