Skip to content

Commit

Permalink
Revert "add lock (apache#1304)" (apache#1329)
Browse files Browse the repository at this point in the history
This reverts commit a109967.
  • Loading branch information
LaurenceLiZhixin authored and Changeden committed Jul 29, 2021
1 parent 7cb0109 commit d022f7e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions config/config_loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,6 @@ func GetApplicationConfig() *ApplicationConfig {
// if not found, create new one
func GetProviderConfig() ProviderConfig {
if providerConfig == nil {
configAccessMutex.Lock()
defer configAccessMutex.Unlock()
if providerConfig == nil {
return ProviderConfig{}
}
Expand All @@ -457,8 +455,6 @@ func GetProviderConfig() ProviderConfig {
// So you don't need to worry about the race condition
func GetConsumerConfig() ConsumerConfig {
if consumerConfig == nil {
configAccessMutex.Lock()
defer configAccessMutex.Unlock()
if consumerConfig == nil {
return ConsumerConfig{}
}
Expand Down

0 comments on commit d022f7e

Please sign in to comment.