Skip to content

Commit b3b58c9

Browse files
LaurenceLiZhixinChangeden
authored and
Changeden
committed
Revert "add lock (apache#1304)" (apache#1329)
This reverts commit a109967.
1 parent 55d711f commit b3b58c9

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

config/config_loader.go

-4
Original file line numberDiff line numberDiff line change
@@ -441,8 +441,6 @@ func GetApplicationConfig() *ApplicationConfig {
441441
// if not found, create new one
442442
func GetProviderConfig() ProviderConfig {
443443
if providerConfig == nil {
444-
configAccessMutex.Lock()
445-
defer configAccessMutex.Unlock()
446444
if providerConfig == nil {
447445
return ProviderConfig{}
448446
}
@@ -457,8 +455,6 @@ func GetProviderConfig() ProviderConfig {
457455
// So you don't need to worry about the race condition
458456
func GetConsumerConfig() ConsumerConfig {
459457
if consumerConfig == nil {
460-
configAccessMutex.Lock()
461-
defer configAccessMutex.Unlock()
462458
if consumerConfig == nil {
463459
return ConsumerConfig{}
464460
}

0 commit comments

Comments
 (0)