From d4df24d93539f19cd1e85eff885d956af8e40a2e Mon Sep 17 00:00:00 2001 From: CookiePieWw Date: Fri, 20 Dec 2024 19:16:01 +0800 Subject: [PATCH] chore: typo --- src/meta-srv/src/election.rs | 2 +- src/meta-srv/src/election/postgres.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/meta-srv/src/election.rs b/src/meta-srv/src/election.rs index 05fe6446b882..2b8f011e986b 100644 --- a/src/meta-srv/src/election.rs +++ b/src/meta-srv/src/election.rs @@ -38,7 +38,7 @@ pub enum LeaderChangeMessage { } /// LeaderKey is a key that represents the leader of metasrv. -/// The structure is correponding to [etcd_client::LeaderKey]. +/// The structure is corresponding to [etcd_client::LeaderKey]. pub trait LeaderKey: Send + Sync + Debug { /// The name in byte. name is the election identifier that corresponds to the leadership key. fn name(&self) -> &[u8]; diff --git a/src/meta-srv/src/election/postgres.rs b/src/meta-srv/src/election/postgres.rs index 9da2b1dd00dd..ce0b4b08f804 100644 --- a/src/meta-srv/src/election/postgres.rs +++ b/src/meta-srv/src/election/postgres.rs @@ -444,7 +444,7 @@ mod tests { let handle = tokio::spawn(candidate(leader_value.clone())); handles.push(handle); } - // Wait for candidates registrating themselves. + // Wait for candidates to registrate themselves. tokio::time::sleep(Duration::from_secs(3)).await; let endpoint = env::var("GT_POSTGRES_ENDPOINTS").unwrap_or_default();