···139139 let repo = ddb.clone();
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;
144144+142145 i += 1;
143146 }
144147