Increase MAX_REQUEST_NUMBER for fetches to 25

This commit is contained in:
Felix Ableitner 2021-01-29 16:45:28 +01:00
parent 3d578f9df2
commit 5f59d7ba5f

View File

@ -10,8 +10,9 @@ use url::Url;
/// Maximum number of HTTP requests allowed to handle a single incoming activity (or a single object /// Maximum number of HTTP requests allowed to handle a single incoming activity (or a single object
/// fetch through the search). /// fetch through the search).
/// ///
/// Tests are passing with a value of 5, so 10 should be safe for production. /// A community fetch will load the outbox with up to 20 items, and fetch the creator for each item.
static MAX_REQUEST_NUMBER: i32 = 10; /// 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)] #[derive(Debug, Error)]
pub(in crate::fetcher) struct FetchError { pub(in crate::fetcher) struct FetchError {