Skip to content

Commit

Permalink
needle arguments do not need explicit lifetime
Browse files Browse the repository at this point in the history
  • Loading branch information
citrus-it committed Feb 29, 2024
1 parent ff3a6f0 commit ae45f45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test-utils/src/dev/clickhouse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ async fn find_clickhouse_port_in_log(
pub async fn wait_for_ready(
log_path: Utf8PathBuf,
timeout: Duration,
needle: &'static str,
needle: &str,
) -> Result<(), anyhow::Error> {
let p = poll::wait_for_condition(
|| async {
Expand Down Expand Up @@ -758,7 +758,7 @@ pub async fn wait_for_ready(
async fn discover_ready(
path: &Utf8Path,
timeout: Duration,
needle: &'static str,
needle: &str,
) -> Result<(), ClickHouseError> {
let timeout = Instant::now() + timeout;
tokio::time::timeout_at(timeout, clickhouse_ready_from_log(path, needle))
Expand All @@ -772,7 +772,7 @@ async fn discover_ready(
// should be run under a timeout, or some other mechanism for cancelling it.
async fn clickhouse_ready_from_log(
path: &Utf8Path,
needle: &'static str,
needle: &str,
) -> Result<(), ClickHouseError> {
let mut reader = BufReader::new(File::open(path).await?);
let mut lines = reader.lines();
Expand Down

0 comments on commit ae45f45

Please sign in to comment.