hunter/worker: fetch a maximum of 40 posts

This commit is contained in:
Astro 2022-11-06 22:30:43 +01:00
parent 5174e9e235
commit 7913f6fa5f

View File

@ -25,7 +25,7 @@ pub fn fetch_and_process(
client: reqwest::Client, client: reqwest::Client,
host: String, host: String,
) { ) {
let url = format!("https://{}/api/v1/timelines/public", host); let url = format!("https://{}/api/v1/timelines/public?limit=40", host);
tokio::spawn(async move { tokio::spawn(async move {
match Feed::fetch(&client, &url).await { match Feed::fetch(&client, &url).await {
Ok(feed) => { Ok(feed) => {