读取 consul服务上的配置地址提示错误并自动退出 ,错误如下:
panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0x144395e] goroutine 1 [running]: vendor/github.com/xordataexchange/crypt/backend/consul.(*Client).Get(0xc00005fec0, 0x7fff5fbff754, 0x12, 0x12, 0x7fff5fbff754, 0x12, 0x0, 0x0) /vendor/github.com/xordataexchange/crypt/backend/consul/consul.go:34 +0x8e /gp_mb_ad_engine/pj_brand_monitor_realdeliver/vendor/github.com/xordataexchange/crypt/config.standardConfigManager.Get(...)
检查启动命令后配置的consul地址和实际路径不匹配 ,更新为正确路径后即可正常启动;
./cmd -c consul://10.168.99.211:8500/brand/realdeliver_config