Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d568739

Browse files
authored
Fix typos (#398)
Found via `typos --format brief`
1 parent 692353c commit d568739

File tree

14 files changed

+20
-20
lines changed

14 files changed

+20
-20
lines changed

CONFIG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ default: <UNSET>
152152
example: "server.cert"
153153
```
154154

155-
Path to TLS Certficate file to use for TLS connections
155+
Path to TLS Certificate file to use for TLS connections
156156

157157
### tls_private_key
158158
```

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ You can open a Docker development environment where you can debug tests easier.
9999
./dev/script/console
100100
```
101101

102-
This will open a terminal in an environment similar to that used in tests. In there, you can compile the pooler, run tests, do some debugging with the test environment, etc. Objects compiled inside the contaner (and bundled gems) will be placed in `dev/cache` so they don't interfere with what you have on your machine.
102+
This will open a terminal in an environment similar to that used in tests. In there, you can compile the pooler, run tests, do some debugging with the test environment, etc. Objects compiled inside the container (and bundled gems) will be placed in `dev/cache` so they don't interfere with what you have on your machine.
103103

104104
## Usage
105105

examples/docker/pgcat.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ query_parser_enabled = true
7373

7474
# If the query parser is enabled and this setting is enabled, the primary will be part of the pool of databases used for
7575
# load balancing of read queries. Otherwise, the primary will only be used for write
76-
# queries. The primary can always be explicitely selected with our custom protocol.
76+
# queries. The primary can always be explicitly selected with our custom protocol.
7777
primary_reads_enabled = true
7878

7979
# So what if you wanted to implement a different hashing function,

pgcat.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ tcp_keepalives_count = 5
5757
# Number of seconds between keepalive packets.
5858
tcp_keepalives_interval = 5
5959

60-
# Path to TLS Certficate file to use for TLS connections
60+
# Path to TLS Certificate file to use for TLS connections
6161
# tls_certificate = "server.cert"
6262
# Path to TLS private key file to use for TLS connections
6363
# tls_private_key = "server.key"
@@ -123,7 +123,7 @@ idle_timeout = 40000
123123
connect_timeout = 3000
124124

125125
# User configs are structured as pool.<pool_name>.users.<user_index>
126-
# This secion holds the credentials for users that may connect to this cluster
126+
# This section holds the credentials for users that may connect to this cluster
127127
[pools.sharded_db.users.0]
128128
# Postgresql username
129129
username = "sharding_user"

src/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ impl General {
273273

274274
// These keepalive defaults should detect a dead connection within 30 seconds.
275275
// Tokio defaults to disabling keepalives which keeps dead connections around indefinitely.
276-
// This can lead to permenant server pool exhaustion
276+
// This can lead to permanent server pool exhaustion
277277
pub fn default_tcp_keepalives_idle() -> u64 {
278278
5 // 5 seconds
279279
}
@@ -422,7 +422,7 @@ pub struct Pool {
422422

423423
pub shards: BTreeMap<String, Shard>,
424424
pub users: BTreeMap<String, User>,
425-
// Note, don't put simple fields below these configs. There's a compatability issue with TOML that makes it
425+
// Note, don't put simple fields below these configs. There's a compatibility issue with TOML that makes it
426426
// incompatible to have simple fields in TOML after complex objects. See
427427
// https://users.rust-lang.org/t/why-toml-to-string-get-error-valueaftertable/85903
428428
}

src/messages.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ pub fn row_description(columns: &Vec<(&str, DataType)>) -> BytesMut {
404404
let mut res = BytesMut::new();
405405
let mut row_desc = BytesMut::new();
406406

407-
// how many colums we are storing
407+
// how many columns we are storing
408408
row_desc.put_i16(columns.len() as i16);
409409

410410
for (name, data_type) in columns {

src/multi_logger.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use log::{Level, Log, Metadata, Record, SetLoggerError};
1717
//
1818
// So to summarize, if no `STDOUT_LOG` env var is present, the logger is the default logger. If `STDOUT_LOG` is set, everything
1919
// but errors, that matches the log level set in the `STDOUT_LOG` env var is sent to stdout. You can have also some esoteric configuration
20-
// where you set `RUST_LOG=debug` and `STDOUT_LOG=info`, in here, erros will go to stderr, warns and infos to stdout and debugs to stderr.
20+
// where you set `RUST_LOG=debug` and `STDOUT_LOG=info`, in here, errors will go to stderr, warns and infos to stdout and debugs to stderr.
2121
//
2222
pub struct MultiLogger {
2323
stderr_logger: env_logger::Logger,

src/query_router.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/// Route queries automatically based on explicitely requested
1+
/// Route queries automatically based on explicitly requested
22
/// or implied query characteristics.
33
use bytes::{Buf, BytesMut};
44
use log::{debug, error};

src/stats.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ impl Reporter {
6666
CLIENT_STATS.write().insert(client_id, stats);
6767
}
6868

69-
/// Reports a client is disconecting from the pooler.
69+
/// Reports a client is disconnecting from the pooler.
7070
fn client_disconnecting(&self, client_id: i32) {
7171
CLIENT_STATS.write().remove(&client_id);
7272
}
@@ -76,7 +76,7 @@ impl Reporter {
7676
fn server_register(&self, server_id: i32, stats: Arc<ServerStats>) {
7777
SERVER_STATS.write().insert(server_id, stats);
7878
}
79-
/// Reports a server connection is disconecting from the pooler.
79+
/// Reports a server connection is disconnecting from the pooler.
8080
fn server_disconnecting(&self, server_id: i32) {
8181
SERVER_STATS.write().remove(&server_id);
8282
}

src/stats/client.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ impl ClientStats {
9292
}
9393
}
9494

95-
/// Reports a client is disconecting from the pooler and
95+
/// Reports a client is disconnecting from the pooler and
9696
/// update metrics on the corresponding pool.
9797
pub fn disconnect(&self) {
9898
self.reporter.client_disconnecting(self.client_id);
@@ -140,7 +140,7 @@ impl ClientStats {
140140
self.error_count.fetch_add(1, Ordering::Relaxed);
141141
}
142142

143-
/// Reportes the time spent by a client waiting to get a healthy connection from the pool
143+
/// Reporters the time spent by a client waiting to get a healthy connection from the pool
144144
pub fn checkout_time(&self, microseconds: u64) {
145145
self.total_wait_time
146146
.fetch_add(microseconds, Ordering::Relaxed);

0 commit comments

Comments
 (0)