Skip to content

Commit

Permalink
chore: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
WenyXu committed Jun 7, 2024
1 parent 7d5bf4f commit 0e6e4c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/meta-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub mod error;
// Options for meta client in datanode instance.
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq, Eq)]
pub struct MetaClientOptions {
#[serde(default = "default_metasrc_addrs")]
#[serde(default = "default_metasrv_addrs")]
pub metasrv_addrs: Vec<String>,
#[serde(default = "default_timeout")]
#[serde(with = "humantime_serde")]
Expand Down Expand Up @@ -80,14 +80,14 @@ fn default_tcp_nodelay() -> bool {
true
}

fn default_metasrc_addrs() -> Vec<String> {
fn default_metasrv_addrs() -> Vec<String> {
vec!["127.0.0.1:3002".to_string()]
}

impl Default for MetaClientOptions {
fn default() -> Self {
Self {
metasrv_addrs: default_metasrc_addrs(),
metasrv_addrs: default_metasrv_addrs(),
timeout: default_timeout(),
heartbeat_timeout: default_heartbeat_timeout(),
ddl_timeout: default_ddl_timeout(),
Expand Down

0 comments on commit 0e6e4c2

Please sign in to comment.