Implement federation self-test

This commit is contained in:
Lambda 2024-09-20 12:05:24 +00:00 committed by Benjamin Lee
parent 6022d56094
commit e14b7f28f2
No known key found for this signature in database
GPG key ID: FB9624E2885D55A4
4 changed files with 46 additions and 3 deletions

View file

@ -328,6 +328,7 @@ pub(crate) struct ObservabilityConfig {
#[serde(default)]
pub(crate) struct FederationConfig {
pub(crate) enable: bool,
pub(crate) self_test: bool,
pub(crate) trusted_servers: Vec<OwnedServerName>,
pub(crate) max_fetch_prev_events: u16,
pub(crate) max_concurrent_requests: u16,
@ -338,6 +339,7 @@ impl Default for FederationConfig {
fn default() -> Self {
Self {
enable: true,
self_test: true,
trusted_servers: vec![
OwnedServerName::try_from("matrix.org").unwrap()
],