This is an automated email from the ASF dual-hosted git repository.

alexstocks pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git


The following commit(s) were added to refs/heads/3.0 by this push:
     new ef0cc7e  Fix the IsProvider check (#1500)
ef0cc7e is described below

commit ef0cc7eafdabc8da4f8fab3fd6aea98644c625f5
Author: alchemy-lee <[email protected]>
AuthorDate: Wed Oct 6 15:53:57 2021 +0800

    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] <[email protected]>
    
    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] <[email protected]>
    
    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] <[email protected]>
    
    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 <[email protected]>
    Co-authored-by: randy <[email protected]>
    Co-authored-by: LaurenceLiZhixin <[email protected]>
    Co-authored-by: Zhiqiang Li <[email protected]>
    Co-authored-by: tyltr <[email protected]>
    Co-authored-by: Laurence 
<[email protected]>
    Co-authored-by: dependabot[bot] 
<49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: yuyu.zx <[email protected]>
    Co-authored-by: fangyincheng <[email protected]>
---
 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 ba9c4f5..600151f 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
 }

Reply via email to