misc typing cleanup

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-12-17 23:06:04 -05:00
parent 3675c941f8
commit 4dd809fdc4
No known key found for this signature in database
4 changed files with 40 additions and 42 deletions

View file

@ -190,8 +190,8 @@ impl Service {
}
#[tracing::instrument(skip(self, serialized), level = "debug")]
pub fn send_edu_appservice(&self, appservice_id: String, serialized: Vec<u8>) -> Result {
let dest = Destination::Appservice(appservice_id);
pub fn send_edu_appservice(&self, appservice_id: &str, serialized: Vec<u8>) -> Result {
let dest = Destination::Appservice(appservice_id.to_owned());
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.clone(), serialized.clone())?;
self.send_edu_appservice(&appservice.registration.id, serialized.clone())?;
}
}
Ok(())