max_workers = 4 = so much faster

This commit is contained in:
Lev Kokotov
2022-02-10 13:48:56 -08:00
parent a3b910ea72
commit 1798065b76
2 changed files with 2 additions and 2 deletions

View File

@@ -17,4 +17,4 @@ sha-1 = "0.10"
toml = "0.5" toml = "0.5"
serde = "1" serde = "1"
serde_derive = "1" serde_derive = "1"
regex = "1" regex = "1"

View File

@@ -40,7 +40,7 @@ mod sharding;
use pool::{ClientServerMap, ConnectionPool}; use pool::{ClientServerMap, ConnectionPool};
/// Main! /// Main!
#[tokio::main] #[tokio::main(worker_threads = 4)]
async fn main() { async fn main() {
println!("> Welcome to PgCat! Meow."); println!("> Welcome to PgCat! Meow.");