提交 3602a3db authored 作者: mooncake's avatar mooncake

update

上级 90544c32
......@@ -11,7 +11,6 @@ import (
"github.com/spf13/viper"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/logger"
"gitlab.wanzhuangkj.com/tush/xpkg/pkg/xerrors/xerror"
"gitlab.wanzhuangkj.com/tush/xpkg/utils/hashutils"
)
type ConsulConfFetcher struct {
......@@ -53,7 +52,7 @@ func (x *ConsulConfFetcher) sync() *ConsulConfFetcher {
x.err = xerror.New("[consul]请先配置consul")
return x
}
if hashutils.Md5(kv.Value) != hashutils.Md5(x.cfg.GetContent()) {
if hashutil.Md5(kv.Value) != hashutil.Md5(x.cfg.GetContent()) {
x.count++
x.isNew = true
x.cfg.SetContent(kv.Value)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论