Skip to content

Commit

Permalink
fix test and clippy
Browse files Browse the repository at this point in the history
Signed-off-by: Bugen Zhao <[email protected]>
  • Loading branch information
BugenZhao committed Dec 29, 2023
1 parent 0420bdd commit f79e207
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
12 changes: 10 additions & 2 deletions src/cmd_all/src/standalone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,11 @@ mod test {
listen_addr: "127.0.0.1:8000",
advertise_addr: None,
prometheus_listener_addr: "127.0.0.1:1234",
meta_address: "http://127.0.0.1:5690",
meta_address: List(
[
http://127.0.0.1:5690/,
],
),
connector_rpc_endpoint: None,
connector_rpc_sink_payload_format: None,
config_path: "src/config/test.toml",
Expand All @@ -281,7 +285,11 @@ mod test {
listen_addr: "127.0.0.1:4566",
advertise_addr: None,
port: None,
meta_addr: "http://127.0.0.1:5690",
meta_addr: List(
[
http://127.0.0.1:5690/,
],
),
prometheus_listener_addr: "127.0.0.1:1234",
health_check_listener_addr: "127.0.0.1:6786",
config_path: "src/config/test.toml",
Expand Down
3 changes: 1 addition & 2 deletions src/common/src/util/meta_addr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use std::str::FromStr;

use itertools::Itertools;

const META_ADDRESS_LOAD_BALANCE_MODE_PREFIX: &'static str = "load-balance+";
const META_ADDRESS_LOAD_BALANCE_MODE_PREFIX: &str = "load-balance+";

/// The strategy for meta client to connect to meta node.
///
Expand Down Expand Up @@ -115,7 +115,6 @@ mod tests {
}
Some(strategy) => {
assert_eq!(strategy, parsed_result.unwrap());
assert_eq!(addr, strategy.to_string());
}
}
}
Expand Down

0 comments on commit f79e207

Please sign in to comment.