Skip to content

Commit 1798065

Browse files
committed
max_workers = 4 = so much faster
1 parent a3b910e commit 1798065

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ sha-1 = "0.10"
1717
toml = "0.5"
1818
serde = "1"
1919
serde_derive = "1"
20-
regex = "1"
20+
regex = "1"

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ mod sharding;
4040
use pool::{ClientServerMap, ConnectionPool};
4141

4242
/// Main!
43-
#[tokio::main]
43+
#[tokio::main(worker_threads = 4)]
4444
async fn main() {
4545
println!("> Welcome to PgCat! Meow.");
4646

0 commit comments

Comments
 (0)