From: Felix Ableitner Date: Fri, 29 Jan 2021 15:45:28 +0000 (+0100) Subject: Increase MAX_REQUEST_NUMBER for fetches to 25 X-Git-Url: http://these/git/%22https:/nerdica.net/photo/contact/80/README.ja.md?a=commitdiff_plain;h=5f59d7ba5f615dbe168ed59a2d7c321783c073e6;p=lemmy.git Increase MAX_REQUEST_NUMBER for fetches to 25 --- diff --git a/crates/apub/src/fetcher/fetch.rs b/crates/apub/src/fetcher/fetch.rs index e7e29075..304d1cd1 100644 --- a/crates/apub/src/fetcher/fetch.rs +++ b/crates/apub/src/fetcher/fetch.rs @@ -10,8 +10,9 @@ use url::Url; /// Maximum number of HTTP requests allowed to handle a single incoming activity (or a single object /// fetch through the search). /// -/// Tests are passing with a value of 5, so 10 should be safe for production. -static MAX_REQUEST_NUMBER: i32 = 10; +/// A community fetch will load the outbox with up to 20 items, and fetch the creator for each item. +/// So we are looking at a maximum of 22 requests (rounded up just to be safe). +static MAX_REQUEST_NUMBER: i32 = 25; #[derive(Debug, Error)] pub(in crate::fetcher) struct FetchError {