From ef0cc7eafdabc8da4f8fab3fd6aea98644c625f5 Mon Sep 17 00:00:00 2001 From: alchemy-lee <2769566951@qq.com> Date: Wed, 6 Oct 2021 15:53:57 +0800 Subject: [PATCH] Fix the IsProvider check (#1500) * improve etcd version and change create to put (#1203) * fix: CONTRIBUTING.md url error. (#1303) * add lock (#1304) * Revert "add lock (#1304)" (#1329) This reverts commit a10996763e3e1ffa5cdbd80cb49319a4e3626994. * build(deps): bump github.com/dubbogo/gost from 1.11.14 to 1.11.16 (#1387) Bumps [github.com/dubbogo/gost](https://github.com/dubbogo/gost) from 1.11.14 to 1.11.16. - [Release notes](https://github.com/dubbogo/gost/releases) - [Commits](https://github.com/dubbogo/gost/compare/v1.11.14...v1.11.16) --- updated-dependencies: - dependency-name: github.com/dubbogo/gost dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump google.golang.org/protobuf from 1.26.0 to 1.27.1 (#1386) Bumps [google.golang.org/protobuf](https://github.com/protocolbuffers/protobuf-go) from 1.26.0 to 1.27.1. - [Release notes](https://github.com/protocolbuffers/protobuf-go/releases) - [Changelog](https://github.com/protocolbuffers/protobuf-go/blob/master/release.bash) - [Commits](https://github.com/protocolbuffers/protobuf-go/compare/v1.26.0...v1.27.1) --- updated-dependencies: - dependency-name: google.golang.org/protobuf dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump go.etcd.io/etcd/client/v3 from 3.5.0-alpha.0 to 3.5.0 (#1383) Bumps [go.etcd.io/etcd/client/v3](https://github.com/etcd-io/etcd) from 3.5.0-alpha.0 to 3.5.0. - [Release notes](https://github.com/etcd-io/etcd/releases) - [Changelog](https://github.com/etcd-io/etcd/blob/main/CHANGELOG-3.5.md) - [Commits](https://github.com/etcd-io/etcd/compare/v3.5.0-alpha.0...v3.5.0) --- updated-dependencies: - dependency-name: go.etcd.io/etcd/client/v3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix provider check * fix provider check * fix provider check Co-authored-by: AlexStocks Co-authored-by: randy Co-authored-by: LaurenceLiZhixin <382673304@qq.com> Co-authored-by: Zhiqiang Li Co-authored-by: tyltr <31768692+tylitianrui@users.noreply.github.com> Co-authored-by: Laurence <45508533+LaurenceLiZhixin@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: yuyu.zx Co-authored-by: fangyincheng --- config/config_loader.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config/config_loader.go b/config/config_loader.go index ba9c4f5f17..600151fc50 100644 --- a/config/config_loader.go +++ b/config/config_loader.go @@ -174,6 +174,5 @@ func GetMetadataReportConfg() *MetadataReportConfig { } func IsProvider() bool { - // FixME - return rootConfig.Provider != nil + return len(rootConfig.Provider.Services) > 0 }