summaryrefslogtreecommitdiff
path: root/plugins/redis/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/redis/config.go')
-rw-r--r--plugins/redis/config.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/redis/config.go b/plugins/redis/config.go
index 58766293..41348236 100644
--- a/plugins/redis/config.go
+++ b/plugins/redis/config.go
@@ -28,5 +28,7 @@ type Config struct {
// InitDefaults initializing fill config with default values
func (s *Config) InitDefaults() {
- s.Addrs = []string{"localhost:6379"} // default addr is pointing to local storage
+ if s.Addrs == nil {
+ s.Addrs = []string{"localhost:6379"} // default addr is pointing to local storage
+ }
}