Commit c223e03a by 孙龙

up

parent 5378ccd7
Showing with 3 additions and 3 deletions
......@@ -23,8 +23,8 @@ func registryEtcd(){
//registry.WithAddrs([]string{"192.168.2.232:2379"}),
registry.WithAddrs(lib.GetStringSliceConf("base.etcd.addrs")),
registry.WithTimeout(5*time.Second),
registry.WithUsername("base.etcd.username"),
registry.WithPasswrod("base.etcd.password"),
registry.WithUsername(lib.GetStringConf("base.etcd.username")),
registry.WithPasswrod(lib.GetStringConf("base.etcd.password")),
registry.WithRegistryPath("/ichuntMicroService/"),
registry.WithHeartBeat(5),
)
......@@ -38,7 +38,7 @@ func registryEtcd(){
func main(){
flag.StringVar(&config, "config", "./conf/dev", "配置文件")
flag.StringVar(&config, "config", "./conf/dev/", "配置文件")
flag.Parse()
if config == "" {
flag.Usage()
......
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 sign in to comment