···2727impl DuckdbRepo {
2828 pub async fn new() -> Result<Self, Error> {
2929 let manager = DuckDBConnectionManager::file(DB_PATH);
3030- let pool = r2d2::Pool::builder()
3131- .idle_timeout(Some(std::time::Duration::from_secs(60)))
3232- .max_size(15)
3333- .build(manager)?;
3030+ let pool = r2d2::Pool::builder().build(manager)?;
3431 Ok(Self { pool })
3532 }
3633}
+1-1
crates/feed/src/sync.rs
···140140 repo.insert_scrobble(&did, &scrobble_uri, record).await?;
141141142142 // sleep a bit to avoid overwhelming the database
143143- tokio::time::sleep(std::time::Duration::from_millis(100)).await;
143143+ tokio::time::sleep(std::time::Duration::from_millis(1200)).await;
144144145145 i += 1;
146146 }