mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-27 18:56:30 +00:00
max_workers = 4 = so much faster
This commit is contained in:
@@ -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"
|
||||||
@@ -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.");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user