From 14a3471fcb2bfb990e385059f30eadbed23790de Mon Sep 17 00:00:00 2001 From: strawberry Date: Mon, 10 Jun 2024 02:49:15 -0400 Subject: [PATCH] adminroom: fix function typo Signed-off-by: strawberry --- src/admin/federation/federation_commands.rs | 2 +- src/admin/federation/mod.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/admin/federation/federation_commands.rs b/src/admin/federation/federation_commands.rs index 3405b6fa..7f6b7004 100644 --- a/src/admin/federation/federation_commands.rs +++ b/src/admin/federation/federation_commands.rs @@ -14,7 +14,7 @@ pub(crate) async fn enable_room(_body: Vec<&str>, room_id: Box) -> Resul Ok(RoomMessageEventContent::text_plain("Room enabled.")) } -pub(crate) async fn incoming_federeation(_body: Vec<&str>) -> Result { +pub(crate) async fn incoming_federation(_body: Vec<&str>) -> Result { let map = services().globals.roomid_federationhandletime.read().await; let mut msg = format!("Handling {} incoming pdus:\n", map.len()); diff --git a/src/admin/federation/mod.rs b/src/admin/federation/mod.rs index b3da33f2..81469feb 100644 --- a/src/admin/federation/mod.rs +++ b/src/admin/federation/mod.rs @@ -2,7 +2,7 @@ use clap::Subcommand; use ruma::{events::room::message::RoomMessageEventContent, RoomId, ServerName, UserId}; use self::federation_commands::{ - disable_room, enable_room, fetch_support_well_known, incoming_federeation, remote_user_in_rooms, + disable_room, enable_room, fetch_support_well_known, incoming_federation, remote_user_in_rooms, }; use crate::Result; @@ -51,7 +51,7 @@ pub(crate) async fn process(command: FederationCommand, body: Vec<&str>) -> Resu FederationCommand::EnableRoom { room_id, } => enable_room(body, room_id).await?, - FederationCommand::IncomingFederation => incoming_federeation(body).await?, + FederationCommand::IncomingFederation => incoming_federation(body).await?, FederationCommand::FetchSupportWellKnown { server_name, } => fetch_support_well_known(body, server_name).await?,