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

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


The following commit(s) were added to refs/heads/master by this push:
     new 8d02d8f  Revert "fix unexported bug (#1634)" (#1635)
8d02d8f is described below

commit 8d02d8f98f4a916a80393b9dab7f4944bbb76a02
Author: Xin.Zh <[email protected]>
AuthorDate: Fri Dec 3 12:07:07 2021 +0800

    Revert "fix unexported bug (#1634)" (#1635)
    
    This reverts commit 5604ba5ba2b7be1aa7746dd2b851c8cc3d338f72.
---
 config/service_config.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config/service_config.go b/config/service_config.go
index 809219b..769ce5e 100644
--- a/config/service_config.go
+++ b/config/service_config.go
@@ -164,7 +164,7 @@ func (svc *ServiceConfig) Export() error {
                logger.Errorf(err.Error())
                return err
        }
-       if svc.exported != nil && svc.exported.Load() {
+       if svc.unexported != nil && svc.exported.Load() {
                logger.Warnf("The service %v has already exported!", 
svc.Interface)
                return nil
        }

Reply via email to