Skip to content

Commit

Permalink
chore: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
CookiePieWw committed Dec 20, 2024
1 parent 30bab10 commit d4df24d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/meta-srv/src/election.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
2 changes: 1 addition & 1 deletion src/meta-srv/src/election/postgres.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit d4df24d

Please sign in to comment.