mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-09-11 10:13:02 +02:00
simplify get_pdu() interface; eliminate unconditional Arc
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
58be22e695
commit
6175e72f1c
16 changed files with 51 additions and 52 deletions
|
@ -1,10 +1,11 @@
|
|||
use std::{
|
||||
collections::{hash_map, BTreeMap},
|
||||
sync::Arc,
|
||||
time::Instant,
|
||||
};
|
||||
|
||||
use conduit::{debug, err, implement, warn, Error, Result};
|
||||
use futures::FutureExt;
|
||||
use futures::{FutureExt, TryFutureExt};
|
||||
use ruma::{
|
||||
api::client::error::ErrorKind, events::StateEventType, CanonicalJsonValue, EventId, RoomId, ServerName, UserId,
|
||||
};
|
||||
|
@ -79,6 +80,7 @@ pub async fn handle_incoming_pdu<'a>(
|
|||
.services
|
||||
.state_accessor
|
||||
.room_state_get(room_id, &StateEventType::RoomCreate, "")
|
||||
.map_ok(Arc::new)
|
||||
.await?;
|
||||
|
||||
// Procure the room version
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue