You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by la...@apache.org on 2021/07/18 07:45:51 UTC
[dubbo-go] branch master updated: Revert "add lock (#1304)" (#1329)
This is an automated email from the ASF dual-hosted git repository.
laurence pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git
The following commit(s) were added to refs/heads/master by this push:
new 808862e Revert "add lock (#1304)" (#1329)
808862e is described below
commit 808862eca35786e5f5ed1adbbc826409934d8e1e
Author: Laurence <45...@users.noreply.github.com>
AuthorDate: Sun Jul 18 15:45:43 2021 +0800
Revert "add lock (#1304)" (#1329)
This reverts commit a10996763e3e1ffa5cdbd80cb49319a4e3626994.
---
config/config_loader.go | 4 ----
1 file changed, 4 deletions(-)
diff --git a/config/config_loader.go b/config/config_loader.go
index 20d5cf1..9fc7da4 100644
--- a/config/config_loader.go
+++ b/config/config_loader.go
@@ -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{}
}
@@ -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{}
}