Skip to content

Commit

Permalink
bump: nacos-sdk=0.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
CherishCai committed Mar 10, 2024
1 parent 5970006 commit c338181
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
edition = "2021"
name = "nacos-sdk-rust-binding-node"
version = "0.3.3"
version = "0.3.5"
authors = ["CheirshCai <[email protected]>"]
license = "Apache-2.0"
readme = "README.md"
Expand All @@ -18,7 +18,7 @@ crate-type = ["cdylib"]
napi = { version = "2", default-features = false, features = ["napi4", "async"] }
napi-derive = "2"

nacos-sdk = { version = "0.3.3", features = ["async"] }
nacos-sdk = { version = "0.3.5", features = ["async"] }
#nacos-sdk = { git = "https://github.com/nacos-group/nacos-sdk-rust.git", branch = "main", features = ["async"] }

tracing-subscriber = { version = "0.3", features = ["default"] }
Expand Down
2 changes: 2 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ export interface ClientOptions {
password?: string
/** naming push_empty_protection, default true */
namingPushEmptyProtection?: boolean
/** naming load_cache_at_start, default false */
namingLoadCacheAtStart?: boolean
}
export interface NacosConfigResponse {
/** Namespace/Tenant */
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ pub struct ClientOptions {
pub password: Option<String>,
/// naming push_empty_protection, default true
pub naming_push_empty_protection: Option<bool>,
/// naming load_cache_at_start, default false
pub naming_load_cache_at_start: Option<bool>,
}

mod config;
Expand Down
3 changes: 2 additions & 1 deletion src/naming.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ impl NacosNamingClient {
.app_name
.unwrap_or(nacos_sdk::api::constants::UNKNOWN.to_string()),
)
.naming_push_empty_protection(client_options.naming_push_empty_protection.unwrap_or(true));
.naming_push_empty_protection(client_options.naming_push_empty_protection.unwrap_or(true))
.naming_load_cache_at_start(client_options.naming_load_cache_at_start.unwrap_or(false));

// need enable_auth_plugin_http with username & password
let is_enable_auth = client_options.username.is_some() && client_options.password.is_some();
Expand Down

0 comments on commit c338181

Please sign in to comment.