Skip to content

Commit

Permalink
fix up
Browse files Browse the repository at this point in the history
  • Loading branch information
robynron committed Nov 10, 2023
1 parent 9b246b2 commit 196a594
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clients/config_client/config_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func (client *ConfigClient) getConfigInner(param *vo.ConfigParam) (content strin
logger.Warnf("read config from cache success, dataId=%s, group=%s, namespaceId=%s", param.DataId, param.Group, clientConfig.NamespaceId)
return cacheContent, nil
}
if response != nil && !response.IsSuccess() {
if response != nil && response.Response != nil && !response.IsSuccess() {
return response.Content, errors.New(response.GetMessage())
}
param.EncryptedDataKey = response.EncryptedDataKey
Expand Down Expand Up @@ -518,7 +518,7 @@ func (client *ConfigClient) refreshContentAndCheck(cacheData cacheData, notify b
cacheData.group, cacheData.tenant)
return
}
if configQueryResponse != nil && !configQueryResponse.IsSuccess() {
if configQueryResponse != nil && configQueryResponse.Response != nil && !configQueryResponse.IsSuccess() {
logger.Errorf("refresh cached config from server error:%v, dataId=%s, group=%s", configQueryResponse.GetMessage(),
cacheData.dataId, cacheData.group)
return
Expand Down

0 comments on commit 196a594

Please sign in to comment.