hunter/worker: fetch a maximum of 40 posts
This commit is contained in:
parent
5174e9e235
commit
7913f6fa5f
|
@ -25,7 +25,7 @@ pub fn fetch_and_process(
|
|||
client: reqwest::Client,
|
||||
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 {
|
||||
match Feed::fetch(&client, &url).await {
|
||||
Ok(feed) => {
|
||||
|
|
Loading…
Reference in New Issue