Skip to content

Commit

Permalink
chore: make the logging message more relevant
Browse files Browse the repository at this point in the history
Signed-off-by: bsbds <[email protected]>
  • Loading branch information
bsbds committed Oct 9, 2024
1 parent 6b29601 commit aa3b568
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/curp/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ impl ClientBuilder {
match self.try_discover_from(&addrs).await {
Ok(()) => return Ok(self),
Err(e) if matches!(e.code(), tonic::Code::Unavailable) => {
warn!("cluster is starting, sleep for {DISCOVER_SLEEP_DURATION} secs");
warn!("cluster is unavailable, sleep for {DISCOVER_SLEEP_DURATION} secs");
tokio::time::sleep(Duration::from_secs(DISCOVER_SLEEP_DURATION)).await;
}
Err(e) => return Err(e),
Expand Down

0 comments on commit aa3b568

Please sign in to comment.