Skip to content

Commit

Permalink
feat: 添加 kv 使用示例 --task=74728904
Browse files Browse the repository at this point in the history
  • Loading branch information
ifooth committed Dec 9, 2023
1 parent 69d5ef2 commit 3019e64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func (c *client) Get(app string, key string, opts ...option.AppOption) (string,
}
resp, err := c.upstream.GetKvValue(vas, req)
if err != nil {
return "", fmt.Errorf("get key values failed, err: %s, rid: %s", err.Error(), vas.Rid)
return "", fmt.Errorf("get kv value failed, err: %s, rid: %s", err, vas.Rid)
}

return resp.Value, nil
Expand Down
2 changes: 2 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ bscp sdk examples
## 示例代码
* [pull-file](./pull-file) - 拉取 file 型配置
* [watch-file](./watch-file) - 拉取 file 型配置并监听配置变更
* [pull-kv](./pull-kv) - 拉取 kv 型配置
* [watch-kv](./watch-kv) - 拉取 kv 型配置并监听配置变更

运行测试

Expand Down

0 comments on commit 3019e64

Please sign in to comment.