Skip to content

Commit

Permalink
fix a logic bug (#1639)
Browse files Browse the repository at this point in the history
  • Loading branch information
luky116 committed Dec 3, 2021
1 parent db09e49 commit a2c0731
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/service_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit a2c0731

Please sign in to comment.