Skip to content

Commit

Permalink
Revert "add lock (#1304)"
Browse files Browse the repository at this point in the history
This reverts commit a109967.
  • Loading branch information
LaurenceLiZhixin committed Jul 18, 2021
1 parent a109967 commit 53f1f7a
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 @@ -451,8 +451,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 @@ -467,8 +465,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 53f1f7a

Please sign in to comment.