Skip to content

Commit

Permalink
update configitem.id type (#512)
Browse files Browse the repository at this point in the history
  • Loading branch information
binbin0325 authored Sep 1, 2022
1 parent bdae456 commit c65ee73
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
1 change: 0 additions & 1 deletion clients/config_client/config_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ func (client *ConfigClient) getConfigInner(param vo.ConfigParam) (content string
param.Group = constant.DEFAULT_GROUP
}

//todo 获取容灾配置的 EncryptedDataKey LocalEncryptedDataKeyProcessor.getEncryptDataKeyFailover
clientConfig, _ := client.GetClientConfig()
cacheKey := util.GetConfigCacheKey(param.DataId, param.Group, clientConfig.NamespaceId)
content = cache.GetFailover(cacheKey, client.configCacheDir)
Expand Down
2 changes: 1 addition & 1 deletion example/service/service_client_example.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
func ExampleServiceClient_RegisterServiceInstance(client naming_client.INamingClient, param vo.RegisterInstanceParam) {
success, err := client.RegisterInstance(param)
if !success || err != nil {
panic("RegisterServiceInstance failed!")
panic("RegisterServiceInstance failed!" + err.Error())
}
fmt.Printf("RegisterServiceInstance,param:%+v,result:%+v \n\n", param, success)
}
Expand Down
16 changes: 9 additions & 7 deletions model/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,16 @@

package model

import "encoding/json"

type ConfigItem struct {
Id string `param:"id"`
DataId string `param:"dataId"`
Group string `param:"group"`
Content string `param:"content"`
Md5 string `param:"md5"`
Tenant string `param:"tenant"`
Appname string `param:"appname"`
Id json.Number `param:"id"`
DataId string `param:"dataId"`
Group string `param:"group"`
Content string `param:"content"`
Md5 string `param:"md5"`
Tenant string `param:"tenant"`
Appname string `param:"appname"`
}
type ConfigPage struct {
TotalCount int `param:"totalCount"`
Expand Down

0 comments on commit c65ee73

Please sign in to comment.