A decentralized music tracking and discovery platform built on AT Protocol 🎵

fix: increase PostgreSQL connection pool settings for better performance

+10 -2
+5 -1
crates/scrobbler/src/lib.rs
··· 45 45 let cache = Cache::new()?; 46 46 47 47 let pool = PgPoolOptions::new() 48 - .max_connections(5) 48 + .max_connections(10) 49 + .min_connections(5) 50 + .acquire_timeout(Duration::from_secs(10)) 51 + .idle_timeout(Duration::from_secs(300)) 52 + .max_lifetime(Duration::from_secs(1800)) 49 53 .connect(&env::var("XATA_POSTGRES_URL")?) 50 54 .await?; 51 55 let conn = Arc::new(pool);
+5 -1
crates/webscrobbler/src/lib.rs
··· 32 32 let cache = Cache::new()?; 33 33 34 34 let pool = PgPoolOptions::new() 35 - .max_connections(5) 35 + .max_connections(10) 36 + .min_connections(5) 37 + .acquire_timeout(Duration::from_secs(10)) 38 + .idle_timeout(Duration::from_secs(300)) 39 + .max_lifetime(Duration::from_secs(1800)) 36 40 .connect(&env::var("XATA_POSTGRES_URL")?) 37 41 .await?; 38 42