Revert "misc typing cleanup"

This reverts commit 4dd809fdc4.
This commit is contained in:
strawberry 2024-12-18 11:26:04 -05:00
parent 4dd809fdc4
commit 9040ad054e
4 changed files with 42 additions and 40 deletions

View file

@ -190,8 +190,8 @@ impl Service {
}
#[tracing::instrument(skip(self, serialized), level = "debug")]
pub fn send_edu_appservice(&self, appservice_id: &str, serialized: Vec<u8>) -> Result {
let dest = Destination::Appservice(appservice_id.to_owned());
pub fn send_edu_appservice(&self, appservice_id: String, serialized: Vec<u8>) -> Result {
let dest = Destination::Appservice(appservice_id);
let event = SendingEvent::Edu(serialized);
let _cork = self.db.db.cork();
let keys = self.db.queue_requests(once((&event, &dest)));
@ -224,7 +224,7 @@ impl Service {
.appservice_in_room(room_id, appservice)
.await
{
self.send_edu_appservice(&appservice.registration.id, serialized.clone())?;
self.send_edu_appservice(appservice.registration.id.clone(), serialized.clone())?;
}
}
Ok(())