Skip to content

Commit

Permalink
Update config_file.go
Browse files Browse the repository at this point in the history
解决配置中心标签  value 和 key 相同的问题
  • Loading branch information
nxsre authored Oct 21, 2023
1 parent d60fc05 commit a1a87ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/model/config_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ func FromTagMap(kvs map[string]string) []*config_manage.ConfigFileTag {
func ToTagMap(tags []*config_manage.ConfigFileTag) map[string]string {
kvs := map[string]string{}
for i := range tags {
kvs[tags[i].GetKey().GetValue()] = tags[i].GetKey().GetValue()
kvs[tags[i].GetKey().GetValue()] = tags[i].GetValue().GetValue()
}

return kvs
Expand Down

0 comments on commit a1a87ea

Please sign in to comment.