From 7da6c78449776e1f3c6716250bca0b712a0423a4 Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Thu, 21 Jan 2021 13:25:36 +0300 Subject: Uniform all configs Add debug server Check nil's for all plugin intialization --- plugins/kv/memcached/config.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/kv/memcached/config.go') diff --git a/plugins/kv/memcached/config.go b/plugins/kv/memcached/config.go index 62f29ef2..7aad53b6 100644 --- a/plugins/kv/memcached/config.go +++ b/plugins/kv/memcached/config.go @@ -6,5 +6,7 @@ type Config struct { } func (s *Config) InitDefaults() { - s.Addr = []string{"localhost:11211"} // default url for memcached // init logger + if s.Addr == nil { + s.Addr = []string{"localhost:11211"} // default url for memcached + } } -- cgit v1.2.3