mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-18 00:01:24 +01:00
Implement federation self-test
This commit is contained in:
parent
6022d56094
commit
e14b7f28f2
4 changed files with 46 additions and 3 deletions
|
|
@ -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()
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue