diff --git a/consul/consul.go b/consul/consul.go index 0d9b789..d11a32f 100644 --- a/consul/consul.go +++ b/consul/consul.go @@ -23,7 +23,7 @@ type Config struct { //Init 初始化consul连接 func Init(config *Config) error { if config == nil { - conf = &Config{ + config = &Config{ Address: "127.0.0.1:8500", } }