Revert "Rename http_fetch_retry_limit to http_fetch_limit (was misleading)"

This reverts commit dc32b0e94e.
This commit is contained in:
Felix Ableitner 2022-11-22 11:10:08 +01:00
parent dc32b0e94e
commit f0cadb20c1
2 changed files with 2 additions and 2 deletions

View file

@ -36,7 +36,7 @@ clone_trait_object!(UrlVerifier);
pub struct InstanceSettings {
/// Maximum number of outgoing HTTP requests per incoming activity
#[builder(default = "20")]
http_fetch_limit: i32,
http_fetch_retry_limit: i32,
/// Number of worker threads for sending outgoing activities
#[builder(default = "64")]
worker_count: u64,

View file

@ -15,7 +15,7 @@ pub async fn fetch_object_http<Kind: DeserializeOwned>(
info!("Fetching remote object {}", url.to_string());
*request_counter += 1;
if *request_counter > instance.settings.http_fetch_limit {
if *request_counter > instance.settings.http_fetch_retry_limit {
return Err(Error::RequestLimit);
}