We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42ef7fe commit a109967Copy full SHA for a109967
config/config_loader.go
@@ -451,6 +451,8 @@ func GetApplicationConfig() *ApplicationConfig {
451
// if not found, create new one
452
func GetProviderConfig() ProviderConfig {
453
if providerConfig == nil {
454
+ configAccessMutex.Lock()
455
+ defer configAccessMutex.Unlock()
456
457
return ProviderConfig{}
458
}
@@ -465,6 +467,8 @@ func GetProviderConfig() ProviderConfig {
465
467
// So you don't need to worry about the race condition
466
468
func GetConsumerConfig() ConsumerConfig {
469
if consumerConfig == nil {
470
471
472
473
return ConsumerConfig{}
474
0 commit comments