Remove useless wrapper Services

This commit is contained in:
Lambda 2024-05-11 15:03:42 +00:00 committed by Charles Hall
parent 87a1012ab5
commit ad7a5ea777
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
20 changed files with 43 additions and 530 deletions

View file

@ -3,6 +3,7 @@ use ruma::RoomId;
use crate::{database::KeyValueDatabase, service, services, utils, Result};
impl service::rooms::search::Data for KeyValueDatabase {
#[tracing::instrument(skip(self))]
fn index_pdu(&self, shortroomid: u64, pdu_id: &[u8], message_body: &str) -> Result<()> {
let mut batch = message_body
.split_terminator(|c: char| !c.is_alphanumeric())
@ -20,6 +21,8 @@ impl service::rooms::search::Data for KeyValueDatabase {
self.tokenids.insert_batch(&mut batch)
}
#[tracing::instrument(skip(self))]
#[allow(clippy::type_complexity)]
fn search_pdus<'a>(
&'a self,
room_id: &RoomId,