don't log that federation is disabled

This mostly just spams the logs with useless information when doing
cursed local testing.
This commit is contained in:
Charles Hall 2024-05-16 21:36:28 -07:00
parent 93a2bf9c93
commit 87ac0e2a38
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF

View file

@ -134,7 +134,7 @@ where
T: Debug, T: Debug,
{ {
if !services().globals.allow_federation() { if !services().globals.allow_federation() {
return Err(Error::bad_config("Federation is disabled.")); return Err(Error::BadConfig("Federation is disabled."));
} }
if destination == services().globals.server_name() { if destination == services().globals.server_name() {