WIP: Make the MMM parser run in linear time #14

Draft
natty wants to merge 6 commits from main into mmm
2 changed files with 9 additions and 7 deletions
Showing only changes of commit 277dcb5e3e - Show all commits

View File

@ -4,6 +4,7 @@ use headers::UserAgent;
use hyper::body::Bytes;
use reqwest::{redirect::Policy, Client, RequestBuilder};
use serde_json::Value;
use std::time::Duration;
use thiserror::Error;
use tokio::pin;
use url::Url;
@ -58,6 +59,7 @@ impl FederationClient {
let client = Client::builder()
.https_only(force_https)
.redirect(Policy::limited(5))
.connect_timeout(Duration::from_secs(timeout_seconds))
.build()?;
Ok(FederationClient {

View File

@ -15,7 +15,7 @@ pub(super) fn new_federation_client_service(
FederationClient::new(
true,
256000,
35,
25,
UserAgent::from_str(&format!(
"magnetar/{} (https://{})",
config.branding.version, config.networking.host