Skip to content

Commit

Permalink
bump: upgrade version 0.3.2 (#200)
Browse files Browse the repository at this point in the history
* bump: upgrade version 0.3.2

* doc: Props doc in README.md
  • Loading branch information
CherishCai authored Sep 29, 2023
1 parent 1301c9b commit 4d41599
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# 变更日志 | Change log

### 0.3.2

- 增强:支持环境变量设置部分参数,默认为环境变量优先
- 增强:提供防推空参数设置,默认 true
- 增强:支持 server_addr 不设置端口,默认 8848
- 测试:Integration Test with nacos-server

---

- Enhance: Read props from environment variables, please see `nacos_sdk::api::constants::ENV_NACOS_CLIENT_*`
- Enhance: The `naming_push_empty_protection` could be set by ClientProps
- Enhance: Support `server-addr` without port, default 8848
- Test:Integration Test with nacos-server

### 0.3.1

- Fix:异步登陆未完成,进行其它调用出现未登陆异常 `user not found`
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

[package]
name = "nacos-sdk"
version = "0.3.1"
version = "0.3.2"
edition = "2021"
authors = ["nacos-group", "CheirshCai <[email protected]>", "onewe <[email protected]>"]
license = "Apache-2.0"
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,13 @@ nacos-sdk = { version = "0.3", features = ["default"] }
);
```

### Props
Props count be set by `ClientProps`, or Environment variables (Higher priority).
See them in `nacos_sdk::api::props::ClientProps` or `nacos_sdk::api::constants::ENV_NACOS_CLIENT_*`.
e.g.
- env `NACOS_CLIENT_COMMON_THREAD_CORES` to set num when multi-cpus, default is num_cpus
- env `NACOS_CLIENT_NAMING_PUSH_EMPTY_PROTECTION` for naming empty data notify protection, default true

## 开发说明
- Build with `cargo build`
- Test with `cargo test`
Expand Down

0 comments on commit 4d41599

Please sign in to comment.