A decentralized music tracking and discovery platform built on AT Protocol 馃幍 rocksky.app
spotify atproto lastfm musicbrainz scrobbling listenbrainz
at feat/pgpull 18 lines 366 B view raw
1use std::{env, sync::Arc}; 2 3use anyhow::Error; 4use sqlx::postgres::PgPoolOptions; 5 6use crate::scan::scan_dropbox; 7 8pub async fn scan() -> Result<(), Error> { 9 let pool = PgPoolOptions::new() 10 .max_connections(5) 11 .connect(&env::var("XATA_POSTGRES_URL")?) 12 .await?; 13 let conn = Arc::new(pool); 14 15 scan_dropbox(conn).await?; 16 17 Ok(()) 18}