Skip to content

Commit

Permalink
update naming&config ut (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
binbin0325 authored May 30, 2021
1 parent a42d35a commit 7a2d20f
Show file tree
Hide file tree
Showing 9 changed files with 182 additions and 1,002 deletions.
2 changes: 1 addition & 1 deletion clients/client_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func NewNamingClient(param vo.NacosClientParam) (iClient naming_client.INamingCl
if err != nil {
return
}
iClient = &naming
iClient = naming
return
}

Expand Down
4 changes: 2 additions & 2 deletions clients/config_client/config_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ type ConfigClient struct {
kmsClient *kms.Client
localConfigs []vo.ConfigParam
mutex sync.Mutex
configProxy *ConfigProxy
configProxy IConfigProxy
configCacheDir string
lastAllSyncTime time.Time
cacheMap cache.ConcurrentMap
Expand Down Expand Up @@ -328,7 +328,7 @@ func (client *ConfigClient) searchConfigInner(param vo.SearchConfigParm) (*model
param.PageSize = 10
}
clientConfig, _ := client.GetClientConfig()
configItems, err := client.configProxy.SearchConfigProxy(param, clientConfig.NamespaceId, clientConfig.AccessKey, clientConfig.SecretKey)
configItems, err := client.configProxy.searchConfigProxy(param, clientConfig.NamespaceId, clientConfig.AccessKey, clientConfig.SecretKey)
if err != nil {
logger.Errorf("search config from server error:%+v ", err)
if _, ok := err.(*nacos_error.NacosError); ok {
Expand Down
Loading

0 comments on commit 7a2d20f

Please sign in to comment.