From d61c79a59ebdda7a2c003406cff450489f218195 Mon Sep 17 00:00:00 2001 From: luky116 Date: Fri, 3 Dec 2021 23:34:44 +0800 Subject: [PATCH] fix a logic bug --- 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 2bf0a13ba4..9bc8e52962 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.unexported != nil && svc.exported.Load() { + if svc.exported != nil && svc.exported.Load() { logger.Warnf("The service %v has already exported!", svc.Interface) return nil }