From 14cb71f30639a5df176baebf81bb14fe5ea46786 Mon Sep 17 00:00:00 2001 From: "suguo.yao" Date: Thu, 16 Sep 2021 10:43:31 +0800 Subject: [PATCH] fix consul Init --- consul/consul.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", } }