diff --git a/config/config_loader.go b/config/config_loader.go index c4fc32b9fadab6f8f4fb8e3176534c51df93ba01..6666409dd3f6e9eabb9b858e7691b44c3f9041bd 100644 --- a/config/config_loader.go +++ b/config/config_loader.go @@ -251,12 +251,12 @@ func GetApplicationConfig() *ApplicationConfig { // GetProviderConfig find the provider config // if not found, create new one -func GetProviderConfig() *ProviderConfig { +func GetProviderConfig() ProviderConfig { if providerConfig == nil { logger.Warnf("providerConfig is nil!") - return &ProviderConfig{} + return ProviderConfig{} } - return providerConfig + return *providerConfig } // GetConsumerConfig find the consumer config