Fix typos (#398)

Found via `typos --format brief`
This commit is contained in:
Kian-Meng Ang
2023-04-11 09:37:16 +08:00
committed by GitHub
parent 692353c839
commit d568739db9
14 changed files with 20 additions and 20 deletions

View File

@@ -92,7 +92,7 @@ impl ClientStats {
}
}
/// Reports a client is disconecting from the pooler and
/// Reports a client is disconnecting from the pooler and
/// update metrics on the corresponding pool.
pub fn disconnect(&self) {
self.reporter.client_disconnecting(self.client_id);
@@ -140,7 +140,7 @@ impl ClientStats {
self.error_count.fetch_add(1, Ordering::Relaxed);
}
/// Reportes the time spent by a client waiting to get a healthy connection from the pool
/// Reporters the time spent by a client waiting to get a healthy connection from the pool
pub fn checkout_time(&self, microseconds: u64) {
self.total_wait_time
.fetch_add(microseconds, Ordering::Relaxed);

View File

@@ -102,7 +102,7 @@ impl ServerStats {
self.state.store(ServerState::Idle, Ordering::Relaxed);
}
/// Reports a server connection is disconecting from the pooler.
/// Reports a server connection is disconnecting from the pooler.
/// Also updates metrics on the pool regarding server usage.
pub fn disconnect(&self) {
self.reporter.server_disconnecting(self.server_id);