max connections
parent
1e3900c93a
commit
5a5b5fb4a3
|
@ -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)),
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue