mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-09-12 12:13:57 +02:00
remove additional unnecessary Arc
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
b7109131e2
commit
6a073b4fa4
6 changed files with 15 additions and 33 deletions
|
@ -2,7 +2,6 @@ use std::{
|
|||
borrow::Borrow,
|
||||
collections::{HashMap, HashSet},
|
||||
iter::Iterator,
|
||||
sync::Arc,
|
||||
};
|
||||
|
||||
use conduwuit::{
|
||||
|
@ -20,7 +19,7 @@ use crate::rooms::short::ShortStateHash;
|
|||
#[tracing::instrument(name = "state", level = "debug", skip_all)]
|
||||
pub(super) async fn state_at_incoming_degree_one(
|
||||
&self,
|
||||
incoming_pdu: &Arc<PduEvent>,
|
||||
incoming_pdu: &PduEvent,
|
||||
) -> Result<Option<HashMap<u64, OwnedEventId>>> {
|
||||
let prev_event = &incoming_pdu.prev_events[0];
|
||||
let Ok(prev_event_sstatehash) = self
|
||||
|
@ -67,7 +66,7 @@ pub(super) async fn state_at_incoming_degree_one(
|
|||
#[tracing::instrument(name = "state", level = "debug", skip_all)]
|
||||
pub(super) async fn state_at_incoming_resolved(
|
||||
&self,
|
||||
incoming_pdu: &Arc<PduEvent>,
|
||||
incoming_pdu: &PduEvent,
|
||||
room_id: &RoomId,
|
||||
room_version_id: &RoomVersionId,
|
||||
) -> Result<Option<HashMap<u64, OwnedEventId>>> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue