max connections

main
Mathias Rothenhaeusler 2024-04-14 12:30:27 +02:00
parent 1e3900c93a
commit 5a5b5fb4a3
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ impl Db {
user, password, location, port, db_name
);
let pool: Pool = Pool::new(Opts::from_url(&url)?)?;
let pool: Pool = Pool::new_manual(1, 2, Opts::from_url(&url)?)?;
let database: Db = Self {
pool: Arc::new(Mutex::new(pool)),
};