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();